#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


Please Help Members By Posting Answers For Below Questions

Why string is used in c?

666


How many bytes are occupied by near, far and huge pointers (dos)?

792


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

720


What is hungarian notation? Is it worthwhile?

808


Is c is a low level language?

651






‎How to define structures? · ‎

733


What is getch?

718


What is #error and use of it?

782


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.

1618


code for quick sort?

1711


write a c program in such a way that if we enter the today date the output should be next day's date.

1797


What is null pointer constant?

704


Explain what is the stack?

725


What is a stream?

755


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.

1386