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
Is linux written in c?
Explain what are multibyte characters?
How can I do graphics in c?
What is omp_num_threads?
Why is sizeof () an operator and not a function?
What is a loop?
What is difference between array and structure in c?
Define VARIABLE?
What does return 1 means in c?
Explain what is the difference between a string and an array?
What is the use of gets and puts?
What are the application of void data type in c?
Why #include is used in c language?
write an algorithm to display a square matrix.
using for loop sum 2 number of any 4 digit number in c language