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 comments and how do you insert it in a C program?
What is the use of a semicolon (;) at the end of every program statement?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is a scope resolution operator in c?
What is the -> in c?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Why is c fast?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
Explain what is output redirection?
Is that possible to store 32768 in an int data type variable?
How do you define structure?
Why is c so powerful?