+ 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...

5th Sep 2018, 5:20 AM
Dhiviya Thirumavalavan
Dhiviya Thirumavalavan - avatar
4 Respuestas
+ 2
// Please, insert your code to solve the problen on your code.
5th Sep 2018, 5:56 AM
program
program - avatar
+ 2
You have multiply with increment and decrement.
11th Sep 2018, 5:46 AM
program
program - avatar
+ 1
// Zohir Thank u my friend.. I had clarification about the increment and decrement operator and how it works in above code.
15th Sep 2018, 4:07 PM
Dhiviya Thirumavalavan
Dhiviya Thirumavalavan - avatar
- 1
// Zohir https://code.sololearn.com/cXyozL2MLpGu/#c I inserted the code here.. If you know about it means solve and say.
5th Sep 2018, 6:14 AM
Dhiviya Thirumavalavan
Dhiviya Thirumavalavan - avatar