int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?

Answer Posted / ruchi

outout will be 4 in case code is printf("i=4");
printf("i=3");
else this program will show two error

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are operators in c?

766


List the difference between a "copy constructor" and a "assignment operator"?

760


Do you have any idea how to compare array with pointer in c?

797


What does %d do in c?

717


What are the types of c language?

758






Is there any possibility to create customized header file with c programming language?

811


Explain what does the format %10.2 mean when included in a printf statement?

1084


How do I use void main?

813


What is the difference between arrays and pointers?

824


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1609


Why do we use pointer to pointer in c?

790


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

817


What is wrong with this program statement?

765


List some of the static data structures in C?

947


What is a lookup table in c?

803