#include<stdio.h>
int main()
{
int i=2;
int j=++i + ++i + i++;
printf("%d\n",i);
printf("%d\n",j);
}
Answer Posted / ashok reddy
intially i=2
j=++i + ++i + i++;
in this statament it calculates from r-l
so j=5+4+2
and the last value of i is 5
so i=5 and j=11
is the correct answer
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is ambagious result in C? explain with an example.
what is the difference between 123 and 0123 in c?
What is void main () in c?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
What is "Duff's Device"?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
How does placing some code lines between the comment symbol help in debugging the code?
Where is c used?
I came across some code that puts a (void) cast before each call to printf. Why?
What is a void pointer? When is a void pointer used?
What is the use of ?: Operator?
What is wrong with this program statement? void = 10;
FILE PROGRAMMING
Explain function?