int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
Answer Posted / stuti
This program will give error. Becoz the format of if
statement and printf statement- both are wrong.
In if, instead of if(i==4), if(i=4) is written and in
printf statement, there should be printf("i==4"); and printf
("i=3");
So it will not be compiled.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Explain what is a static function?
What does #pragma once mean?
What is variable in c example?
How do I use void main?
What is the condition that is applied with ?: Operator?
Is c easy to learn?
What is the difference between struct and typedef struct in c?
ATM machine and railway reservation class/object diagram
Is null equal to 0 in sql?
Explain the difference between call by value and call by reference in c language?
What will the preprocessor do for a program?
What is array of pointers to string?
What is atoi and atof in c?
number of times a digit is present in a number
What are type modifiers in c?