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
Is exit(status) truly equivalent to returning the same status from main?
Is a house a shell structure?
Combinations of fibanocci prime series
what is different between auto and local static? why should we use local static?
What is a void pointer? When is a void pointer used?
Explain what are preprocessor directives?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
What is spaghetti programming?
Explain the concept and use of type void.
Are global variables static in c?
When do we get logical errors?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
simple program of graphics and their output display
What are the types of i/o functions?
What are the 5 types of inheritance in c ++?