#include<stdio.h>
int main()
{
int i=2;
int j=++i + ++i + i++;
printf("%d\n",i);
printf("%d\n",j);
}

Answer Posted / kailas.s.patil

i = 2;
first ++i = 3.
second ++i = 4.
third i++ = 5;
now i =5;

then, j = 3 + 4 + 5 = 12

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are multibyte characters?

741


What is c language and why we use it?

704


What is console in c language?

714


What is meant by errors and debugging?

740


what is the format specifier for printing a pointer value?

682






Why is c still so popular?

705


What is a floating point in c?

698


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

2849


Where does the name "C" come from, anyway?

725


What are valid operations on pointers?

807


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

860


What is difference between array and pointer in c?

629


What are the advantages of using Unions?

732


What is difference between Structure and Unions?

742


What is a structure in c language. how to initialise a structure in c?

695