1,151 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

8.4k
views
1 answers
21 votes
Arjun asked Aug 8, 2016
8,390 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...
1.4k
views
1 answers
0 votes
kislaya Pant asked Jun 17, 2018
1,444 views
It is not any gate question but just my doubt over the topic C programming?Ques:- What will be the output of the following program?void main(){ int a=0,x=0; a =...
620
views
0 answers
1 votes
PEKKA asked Nov 18, 2016
620 views
What are sequence Points ....?A sequence point defines any point in a computer program's execution at which it is guaranteed that all side effects of previous evaluations...
485
views
1 answers
0 votes
Ankush Tiwari asked Aug 20, 2016
485 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