Oct 09 2007 05:53 AM 2251 6 }"> What will be the output of the code?#includemain(){int a=10;int b;b=a++ + 20;printf("a= %d b= %d", a, b);} vrijesh28 The o/p will be 11 30. Can somebody tell me how? jintojos Profile Answers by jintojos Questions by jintojos Jul 2nd, 2008 The variable a is incremented by one only after completing the statement b=a++ + 20;So after executing the statement b=a++ + 20 the variable b will have the value 30.Then the value of variable a is incremented that is why the out put is 11 30. amma_mans80 Profile Answers by amma_mans80 Questions by amma_mans80 Nov 7th, 2007 A = 11 b=30 Answer Question Select Best Answer
Oct 09 2007 05:53 AM 2251 6 }"> What will be the output of the code?#includemain(){int a=10;int b;b=a++ + 20;printf("a= %d b= %d", a, b);} vrijesh28 The o/p will be 11 30. Can somebody tell me how? jintojos Profile Answers by jintojos Questions by jintojos Jul 2nd, 2008 The variable a is incremented by one only after completing the statement b=a++ + 20;So after executing the statement b=a++ + 20 the variable b will have the value 30.Then the value of variable a is incremented that is why the out put is 11 30. amma_mans80 Profile Answers by amma_mans80 Questions by amma_mans80 Nov 7th, 2007 A = 11 b=30 Answer Question Select Best Answer
jintojos Profile Answers by jintojos Questions by jintojos Jul 2nd, 2008 The variable a is incremented by one only after completing the statement b=a++ + 20;So after executing the statement b=a++ + 20 the variable b will have the value 30.Then the value of variable a is incremented that is why the out put is 11 30.