#include <stdio.h>
int main()
{
long long i,j;
for(i = 1,j = 100;i<5000;i+= 50,j+=23)
printf("%lld %lld\n",i,j);
return 0;
}
The output for this code on IDEONE can be seen here : http://ideone.com/YCbc9V
I am using GCC 4.8.1 on Windows XP, but instead of getting j + 23
, I am getting all 0
s on the second column of the output.
The code is same and so is the compiler, then hat is causing the change in output?