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
hi any body pls give me company name interview conduct "c" language only
Hi can anyone tell what is a start up code?
What is a structure in c language. how to initialise a structure in c?
How can I open a file so that other programs can update it at the same time?
What is a stream in c programming?
What is a char in c?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
Explain union. What are its advantages?
How does placing some code lines between the comment symbol help in debugging the code?
What are pointers? What are stacks and queues?
How do I use void main?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
Explain that why C is procedural?
How can I remove the leading spaces from a string?
Explain what is the difference between functions abs() and fabs()?