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


Please Help Members By Posting Answers For Below Questions

How can I write functions that take a variable number of arguments?

821


What is the code in while loop that returns the output of given code?

1622


How to Throw some light on the splay trees?

786


Explain what are run-time errors?

792


Is swift based on c?

833






Explain how can I manipulate strings of multibyte characters?

958


Explain what is the stack?

821


why wipro wase

2022


What are the restrictions of a modulus operator?

822


what is event driven software and what is procedural driven software?

2234


Why c is a procedural language?

785


What are control structures? What are the different types?

807


How do you use a 'Local Block'?

903


Is python a c language?

747


How can I run c program?

902