Aug 12 2005 10:06 AM 21019 30 int i=10;printf("%d%d%d",i,i++,++i); compiler dependent satyam131 Profile Answers by satyam131 Questions by satyam131 May 15th, 2010 12 11 11Because one time a variable can contain only one value, and printf is right associative so first of all ++i will executed i.e 11, then i++ i.e. 11 and then i that will be 12. sujithag Profile Answers by sujithag Questions by sujithag Nov 19th, 2008 Compiler dependent.The output is obtained based on how the compiler traverse from left to right or right to left. Answer Question Select Best Answer
Aug 12 2005 10:06 AM 21019 30 int i=10;printf("%d%d%d",i,i++,++i); compiler dependent satyam131 Profile Answers by satyam131 Questions by satyam131 May 15th, 2010 12 11 11Because one time a variable can contain only one value, and printf is right associative so first of all ++i will executed i.e 11, then i++ i.e. 11 and then i that will be 12. sujithag Profile Answers by sujithag Questions by sujithag Nov 19th, 2008 Compiler dependent.The output is obtained based on how the compiler traverse from left to right or right to left. Answer Question Select Best Answer
satyam131 Profile Answers by satyam131 Questions by satyam131 May 15th, 2010 12 11 11Because one time a variable can contain only one value, and printf is right associative so first of all ++i will executed i.e 11, then i++ i.e. 11 and then i that will be 12.
sujithag Profile Answers by sujithag Questions by sujithag Nov 19th, 2008 Compiler dependent.The output is obtained based on how the compiler traverse from left to right or right to left.