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
Why void main is used in c?
How can I call fortran?
What are the general description for loop statement and available loop types in c?
Explain modulus operator. What are the restrictions of a modulus operator?
What is pointer to pointer in c with example?
What is string function c?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Can a pointer point to null?
What are the parts of c program?
How do you construct an increment statement or decrement statement in C?
What are the types of data files?
Can you think of a logic behind the game minesweeper.
How can I list all of the predefined identifiers?
If errno contains a nonzero number, is there an error?
What is the difference between test design and test case design?