#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
What are multibyte characters?
What is c language and why we use it?
What is console in c language?
What is meant by errors and debugging?
what is the format specifier for printing a pointer value?
Why is c still so popular?
What is a floating point in c?
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
Where does the name "C" come from, anyway?
What are valid operations on pointers?
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
What is difference between array and pointer in c?
What are the advantages of using Unions?
What is difference between Structure and Unions?
What is a structure in c language. how to initialise a structure in c?