Increment and decrement operator | SoloLearn: Learn to code for FREE!


Increment and decrement operator

main() { int i=7; i = i++*i++; printf("%d\n",i); i=7; printf("%d %d\n",i ,i++*i++); i=2; printf("%d %d\n" ,i, i++*++i*i++*i++); i=1; printf("%d %d %d\n", i, i++*i++ , i++*i++*++i*i++); i=1; printf("%d %d %d\n" ,i, i++*i++, i++*i++*++i*i++*i++*++i); } Hello friends, I am having a huge doubt in increment and decrement operator and don"t know really how it works.. Can anyone explain me the flow clearly???? How the value assigns for i in a step by step manner...

9/5/2018 5:20:48 AM

Dhiviya Thirumavalavan

4 Answers

New Answer


// Please, insert your code to solve the problen on your code.


You have multiply with increment and decrement.


// Zohir Thank u my friend.. I had clarification about the increment and decrement operator and how it works in above code.


// Zohir I inserted the code here.. If you know about it means solve and say.