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


Please Help Members By Posting Answers For Below Questions

What does typeof return in c?

639


What does 2n 4c mean?

720


Write a program to reverse a linked list in c.

645


What is the purpose of scanf() and printf() functions?

724


What is bubble sort in c?

637






What are the 4 types of functions?

573


What is the purpose of the preprocessor directive error?

682


Does c have circular shift operators?

731


What is "Duff's Device"?

703


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

716


write a progrmm in c language take user interface generate table using for loop?

1574


Differentiate abs() function from fabs() function.

596


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

1651


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1128


What is c language and why we use it?

623