int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
Answer Posted / asit mahato
The conditional test if(i=4) is true for evrey non zero
value of i.As here i=3 here execute the if statement.But
printf can't print nothing because we have not mation the
proper syntax of printf.if we replace
printf(i=4)by printf("i=4")
it will give the following output:
i=4
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
What are pointers? What are different types of pointers?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Can a variable be both constant and volatile?
How many loops are there in c?
What the different types of arrays in c?
What is const volatile variable in c?
What are the header files used in c language?
Is there any demerits of using pointer?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What is the use of printf() and scanf() functions?
Is c programming hard?
What happens if a header file is included twice?
What are different types of operators?
How can I copy just a portion of a string?