int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?

Answer Posted / sukant

The syntax for the if statement is also not correct..
The conditional assignment includes two == rather than a single =...
so,, the if statement wont consider that as a conditional statement and come out of it..
And, it will give an error in the printf(i=3); as the syntax is not apt.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functions to open and close the file in c language?

792


Why do we use header files in c?

787


Calculate 1*2*3*____*n using recursive function??

1735


Explain what is the stack?

831


What is self-referential structure in c programming?

870


What do you know about the use of bit field?

801


What are header files in c?

802


Why is c so powerful?

877


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1041


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

1051


Function calling procedures? and their differences? Why should one go for Call by Reference?

817


What is the 'named constructor idiom'?

821


Explain is it valid to address one element beyond the end of an array?

932


What is indirection? How many levels of pointers can you have?

900


What are structures and unions? State differencves between them.

838