void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / sachin
ans :11
how?
-> i++ => i=i+1 => i=6;
-> ++i => i=i =>i=5(first assign the value);
i=i+1;
so i++ + ++i=6 + 5=11 i.e.ans
| Is This Answer Correct ? | 3 Yes | 31 No |
Post New Answer View All Answers
What are the c keywords?
What are identifiers in c?
Which function in C can be used to append a string to another string?
What are the types of type qualifiers in c?
What is the mean of function?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is auto keyword in c?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
Why main is not a keyword in c?
Why is c so important?
Explain how can I remove the trailing spaces from a string?
What are the advantages of c preprocessor?
What is typeof in c?
What is the size of enum in c?
What is selection sort in c?