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
Explain void pointer?
differentiate built-in functions and user – defined functions.
What is sizeof c?
How do you determine a file’s attributes?
Write a program to check whether a number is prime or not using c?
What is the difference between constant pointer and constant variable?
What is the use of in c?
Can a pointer be static?
Explain the binary height balanced tree?
What is graph in c?
How can I pad a string to a known length?
What is a struct c#?
Are the variables argc and argv are always local to main?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
Is c still used?