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 do you list a file’s date and time?
Where are the auto variables stored?
Explain how do you determine whether to use a stream function or a low-level function?
Explain how can you tell whether a program was compiled using c versus c++?
What is the value of uninitialized variable in c?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What are header files in c programming?
What are dangling pointers in c?
What is sizeof array in c?
Do you know pointer in c?
What is the difference between the = symbol and == symbol?
What is function what are the types of function?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
Tell us the use of fflush() function in c language?
What does the error 'Null Pointer Assignment' mean and what causes this error?