#include<stdio.h>
int main()
{
int i=2;
int j=++i + ++i + i++;
printf("%d\n",i);
printf("%d\n",j);
}
Answer Posted / nb
i = 2 (i dont change)
j = 6 (++i = 3 and in i++ increments after calculating j )
Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
Why string is used in c?
How many bytes are occupied by near, far and huge pointers (dos)?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is hungarian notation? Is it worthwhile?
Is c is a low level language?
How to define structures? ·
What is getch?
What is #error and use of it?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
code for quick sort?
write a c program in such a way that if we enter the today date the output should be next day's date.
What is null pointer constant?
Explain what is the stack?
What is a stream?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.