int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
Answers were Sorted based on User's Feedback
Answer / sukant
The syntax for the if statement is also not correct..
The conditional assignment includes two == rather than a single =...
so,, the if statement wont consider that as a conditional statement and come out of it..
And, it will give an error in the printf(i=3); as the syntax is not apt.
Is This Answer Correct ? | 0 Yes | 0 No |
Is struct oop?
What is array in C
Result of the following program is main() { int i=0; for(i=0;i<20;i++) { switch(i) case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break;} printf("%d,",i); } } a)0,5,9,13,17 b)5,9,13,17 c)12,17,22 d)16,21 e)syntax error
what are the facialities provided by you after the selection of the student.
what is foreign key in c language?
void main() { //char ch; unsigned char ch; clrscr(); for(ch =0;ch<= 127; ch++) printf(" %c= %d \t ", ch, ch); } output?
How can you tell whether two strings are the same?
what is difference between c and c++
Explain how can I convert a number to a string?
what are the stoge class in C and tel the scope and life time of it?
what does ‘#include’ mean?
Differentiate between a for loop and a while loop? What are it uses?