What tasks, features, executions vary with compiler? I know this code is compiler-dependent-
#include <stdio.h>
#define PRODUCT(x)(x*x)
int main()
{
int i=3,j,k;
j=PRODUCT(i++);
k=PRODUCT(++i);
printf("\n%d %d",j,k);
}
Following gives garbage in some, while fixed values in others-
#include <stdio.h>
int main()
{
int i=5,j=10;
printf("%d,%d");
}
So order of execution vary with compilers. Are such ambiguous programs eligible to be asked in exams?