int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
Answer Posted / sathish
output is 3
| Is This Answer Correct ? | 7 Yes | 5 No |
Post New Answer View All Answers
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
What is pointer and structure in c?
What are local static variables? How can you use them?
What are the disadvantages of a shell structure?
What is the difference between exit() and _exit() function?
How can I sort more data than will fit in memory?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Multiply an Integer Number by 2 Without Using Multiplication Operator
Explain what is the best way to comment out a section of code that contains comments?
Where in memory are my variables stored?
Suggesting that there can be 62 seconds in a minute?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is putchar() function?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }