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

Answer Posted / akbar shan

There Wont be any output for this program.It will show
error.Because 1:inside if "=" is used.2:"printf" cant print
the value

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define macros.

787


How do I round numbers?

604


What are the properties of union in c?

592


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

668


What is the size of empty structure in c?

595






What are keywords c?

604


Dont ansi function prototypes render lint obsolete?

609


Should a function contain a return statement if it does not return a value?

601


Do you know pointer in c?

595


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

670


writ a program to compare using strcmp VIVA and viva with its output.

1528


How can a number be converted to a string?

611


What is a union?

611


How will you declare an array of three function pointers where each function receives two ints and returns a float?

785


What are the types of assignment statements?

633