void main()
{
int i=5;
printf("%d",i+++++i);
}
Answer Posted / visu
i+++++i=i++ + ++i
remember this expression is nothing but adding two i's
now unary operators hav higher precedence than binary
=>++ executes first
so i++ =5 (since value changes after statement)
and ++i makes it i=6
as i said its jus adding to i's
now ans=i+i=6+6=12
| Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
Does * p ++ increment p or what it points to?
Explain what are its uses in c programming?
Explain about the constants which help in debugging?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What does emoji p mean?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is array in C
What is structure data type in c?
What are the differences between Structures and Arrays?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Why c is called free form language?
How can I read data from data files with particular formats?
How will you write a code for accessing the length of an array without assigning it to another variable?
Is c still relevant?
What is the difference between #include