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
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
what does static variable mean?
Is null always equal to 0(zero)?
Why static variable is used in c?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What is the difference between null pointer and wild pointer?
Explain that why C is procedural?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What is a structural principle?
Differentiate between ordinary variable and pointer in c.
What is operator promotion?
using only #include
What are pointers really good for, anyway?
What is the advantage of an array over individual variables?
Explain how can a program be made to print the name of a source file where an error occurs?