1,112 views
1 votes
1 votes
#include<stdio.h>

int main()
{

int a = 10, b = 20, c = 30, d = 40;

printf("%d%d%d",a, b, c);
printf("%d%d%d", d);

return 0;

}

What is the Output and when I run it I am getting some wierd answer.
Please explain ?

1 Answer

0 votes
0 votes

It has to throw compile time error

main () // there is no parathesis
printf "  "  // printf syntax is not properly followed 

Related questions

21 votes
21 votes
1 answer
1
Arjun asked Aug 8, 2016
8,216 views
What will be the output of the following code?#include<stdio.h int main() { int x=10, y; y = (x++) + (++x); printf("%d %d %d %d ", y, x++, x, ++x); }22,10,11,1322,11,11,1...
0 votes
0 votes
1 answer
4
Ankush Tiwari asked Aug 20, 2016
472 views
#include<stdio.h int main() { char *p1="xyz"; char *p2="xyz"; if(p1==p2) printf("equal"); else printf("unequal"); }Output is equal how??? please explain