void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / pnkj rajput@kiit,bbsr
Ans. is
12
because
(first check) i++ (no change in the value of 'i' so i=5)
(second check) ++i ('i' increase by 1 so, i=6)
Now, in this the value of 'i' is 6
so, 6 + 6 = 12
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
how to execute a program using if else condition and the output should enter number and the number is odd only...
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
All technical questions
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
How can I call fortran?
What is the role of this pointer?
How old is c programming language?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
How do you do dynamic memory allocation in C applications?
Explain what are reserved words?
What is difference between union and structure in c?
What is the difference between malloc calloc and realloc in c?
What's the difference between constant char *p and char * constant p?
Is null a keyword in c?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above