#include<stdio.h>
int main()
{
int i=2;
int j=++i + ++i + i++;
printf("%d\n",i);
printf("%d\n",j);
}
Answer Posted / kapil
i=5
j=11
j=3+4+4; (i++ post increment)
after this step i value become 5(i++)
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can I automatically locate a programs configuration files in the same directory as the executable?
what is a constant pointer in C
What are reserved words?
How can you convert integers to binary or hexadecimal?
What is class and object in c?
Explain how do you sort filenames in a directory?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
Why do we use null pointer?
Why calloc is better than malloc?
Explain how do you determine whether to use a stream function or a low-level function?
Explain the use of function toupper() with and example code?
With the help of using classes, write a program to add two numbers.
How is a pointer variable declared?
What are the basic data types associated with c?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays