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

Explain void pointer?

584


differentiate built-in functions and user – defined functions.

613


What is sizeof c?

600


How do you determine a file’s attributes?

595


Write a program to check whether a number is prime or not using c?

567






What is the difference between constant pointer and constant variable?

740


What is the use of in c?

568


Can a pointer be static?

609


Explain the binary height balanced tree?

716


What is graph in c?

577


How can I pad a string to a known length?

606


What is a struct c#?

597


Are the variables argc and argv are always local to main?

566


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

1489


Is c still used?

594