0
Why am I getting error in this program
#include <stdio.h> int main(int argc, char *argv[]) { int x = 3, y = 5; if (x = = 3){ printf("\n%d",x); } else{ printf("\n%d",y); } }
4 odpowiedzi
+ 2
== not = = remove the space
+ 1
ChaoticDawg I was fixing the error since yesterday😀😇 thanks sir
+ 1
Herr = = is illegal statement dont give extra space between these equality operators it was silly mistakes read error also u can debug it self . According to standard your main function type is it so your program should return int value or you can use
this
return EXIT_SUCCESS; for successful compilation to same as return 0
in case of failure u can use EXIT_FAILURE
0
Jay Matthews There was an error by giving space