main()
{
intx=2,y=6,z=6;
x=y=z;
printf(%d",x)
}
Answer Posted / krs
"intx=2" must be "int x=2".This is First error.
secondly there is a syntax error in printf();
So there is compile time error due to this code execution.
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
How does selection sort work in c?
What is a function simple definition?
What kind of structure is a house?
All technical questions
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
What is a void pointer? When is a void pointer used?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
Difference between constant pointer and pointer to a constant.
What is #include conio h?
Why c is called top down?
Define Spanning-Tree Protocol (STP)
What is the best style for code layout in c?
Differentiate between the expression “++a” and “a++”?
Should a function contain a return statement if it does not return a value?
What is the difference between exit() and _exit() function in c?