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


Please Help Members By Posting Answers For Below Questions

hi any body pls give me company name interview conduct "c" language only

1671


Hi can anyone tell what is a start up code?

1618


What is a structure in c language. how to initialise a structure in c?

611


How can I open a file so that other programs can update it at the same time?

665


What is a stream in c programming?

598






What is a char in c?

559


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

908


Explain union. What are its advantages?

621


How does placing some code lines between the comment symbol help in debugging the code?

550


What are pointers? What are stacks and queues?

585


How do I use void main?

635


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)

691


Explain that why C is procedural?

662


How can I remove the leading spaces from a string?

638


Explain what is the difference between functions abs() and fabs()?

626