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
How can I remove the leading spaces from a string?
What is define directive?
Explain the array representation of a binary tree in C.
what is use of malloc and calloc?
What is #include conio h?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Write a program to reverse a given number in c language?
What is putchar() function?
What is call by value in c?
What does double pointer mean in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What is the use of a ‘ ’ character?
I have a varargs function which accepts a float parameter?
Explain what are preprocessor directives?
Difference between constant pointer and pointer to a constant.