#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 is %d used in c?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What is the function of multilevel pointer in c?
Write a progarm to find the length of string using switch case?
Write a C/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 maximum number of concurrent threads that the InnoDB plug-in can create.
Explain the use of 'auto' keyword in c programming?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
How can you allocate arrays or structures bigger than 64K?
What is a protocol in c?
Write a program to swap two numbers without using the third variable?
What does main () mean in c?
Do you know what are the properties of union in c?
How does #define work?
What are the advantages of using new operator as compared to the function malloc ()?
What is scope of variable in c?