I try to create in C the sipliest program ever! Make the sum of two numbers and print the result!
My code
Is something wrong with my code? Compile fine but the executable return wrong results!
Also Compiling it with gcc45 return the right results! I start scratch me head.
My code
Code:
#include <stdio.h>
int main (void)
{
int a,b,c;
scanf ("%d", &a);
scanf ("%d", &b);
c=a+b;
printf ("%d\n",c);
return 0;
}
Is something wrong with my code? Compile fine but the executable return wrong results!
Also Compiling it with gcc45 return the right results! I start scratch me head.