void main()
{
int i=5;
printf("%d",i+++++i);
}
Answer Posted / shivam shukla
all of you are breaking the statement i+++++i correctly as
i++ + ++i and your answer 12 is also write but you are
explaining it the wrong way......first i++ will make the
value 6 and again a ++i will make it 7 but inn actual
calculation of i++ + ++i....5+7.....will be calculated
hence we get the value 12
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Are local variables initialized to zero by default in c?
What is the difference between new and malloc functions?
What is the explanation for the dangling pointer in c?
What are dangling pointers? How are dangling pointers different from memory leaks?
Why do we use int main?
Why double pointer is used in c?
Explain what is a program flowchart and explain how does it help in writing a program?
What is meant by gets in c?
Explain heap and queue.
explain what are actual arguments?
Write a program to print “hello world” without using semicolon?
what is the basis for selection of arrays or pointers as data structure in a program
which type of aspect you want from the student.
Write a program to swap two numbers without using a temporary variable?
What header files do I need in order to define the standard library functions I use?