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
How do I send escape sequences to control a terminal or other device?
What is modeling?
Is null always equal to 0(zero)?
Is using exit() the same as using return?
What is the use of header?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
How can I sort a linked list?
What are the 5 elements of structure?
What is the difference between functions getch() and getche()?
What is the difference between far and near in c?
Why doesnt the call scanf work?
What is function and its example?
What is data structure in c and its types?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
How can you determine the maximum value that a numeric variable can hold?