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 determine whether a character is numeric, alphabetic, and so on?
Write a program to check whether a number is prime or not using c?
How can I manipulate individual bits?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Write a program to generate random numbers in c?
The statement, int(*x[]) () what does in indicate?
List some basic data types in c?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Explain why C language is procedural?
how is the examination pattern?
What is unsigned int in c?
What is const keyword in c?
How do you print only part of a string?
How to get string length of given string in c?
What does calloc stand for?