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

+1

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

+2

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

+2

You have multiply with increment and decrement.

+1

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

-1

// Zohir https://code.sololearn.com/cXyozL2MLpGu/#c I inserted the code here.. If you know about it means solve and say.