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
How can I write functions that take a variable number of arguments?
What is the code in while loop that returns the output of given code?
How to Throw some light on the splay trees?
Explain what are run-time errors?
Is swift based on c?
Explain how can I manipulate strings of multibyte characters?
Explain what is the stack?
why wipro wase
What are the restrictions of a modulus operator?
what is event driven software and what is procedural driven software?
Why c is a procedural language?
What are control structures? What are the different types?
How do you use a 'Local Block'?
Is python a c language?
How can I run c program?