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
write a proram to reverse the string using switch case?
Which one would you prefer - a macro or a function?
Are the variables argc and argv are always local to main?
What is difference between static and global variable in c?
I have a varargs function which accepts a float parameter?
Explain output of printf("Hello World"-'A'+'B'); ?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
show how link list can be used to repersent the following polynomial i) 5x+2
What are the string functions? List some string functions available in c.
ATM machine and railway reservation class/object diagram
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What is the difference between c &c++?
What are the scope of static variables?
how many key words availabel in c a) 28 b) 31 c) 32
What is static function in c?