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

Why void main is used in c?

559


How can I call fortran?

640


What are the general description for loop statement and available loop types in c?

685


Explain modulus operator. What are the restrictions of a modulus operator?

597


What is pointer to pointer in c with example?

544






What is string function c?

561


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2029


Can a pointer point to null?

582


What are the parts of c program?

628


How do you construct an increment statement or decrement statement in C?

737


What are the types of data files?

726


Can you think of a logic behind the game minesweeper.

2005


How can I list all of the predefined identifiers?

576


If errno contains a nonzero number, is there an error?

798


What is the difference between test design and test case design?

1564