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
What are the functions to open and close the file in c language?
Why do we use header files in c?
Calculate 1*2*3*____*n using recursive function??
Explain what is the stack?
What is self-referential structure in c programming?
What do you know about the use of bit field?
What are header files in c?
Why is c so powerful?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
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
Function calling procedures? and their differences? Why should one go for Call by Reference?
What is the 'named constructor idiom'?
Explain is it valid to address one element beyond the end of an array?
What is indirection? How many levels of pointers can you have?
What are structures and unions? State differencves between them.