int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
Answers were Sorted based on User's Feedback
Answer / 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 |
HOW TO HANDLE EXCEPTIONS IN C
What is scope rule of function in c?
Is there a way to switch on strings?
Explain what are linked list?
what is disadvantage of pointer in C
Why header file is used in c?
What is return type in c?
What are types of functions?
what is the different bitween abap and abap-hr?
hi , please send me NIC written test papers to sbabavalli@gmail.com
Write a program to swap two numbers without using a temporary variable?
can we write a program in c for printf and scanf without using header file stdio.h