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
What does void main return?
How can I get the current date or time of day in a c program?
List some of the static data structures in C?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
what is the structure pointer?
How can you increase the size of a dynamically allocated array?
How can I read in an object file and jump to locations in it?
Explain can static variables be declared in a header file?
How can I find the modification date and time of a file?
Where define directive used?
What is int main () in c?
How do shell structures work?
What header files do I need in order to define the standard library functions I use?
What is the advantage of a random access file?
Explain about C function prototype?