For more discuss and ask question join this group https://www.facebook.com/groups/143792885956764/ Solved By : Tahir Siddiqui(Mani) BC-140201235@Vu.edu.pk Dev c++ 3rd lecture : Today Topic :Increment/decrements operators, and side effects : Incrementing (adding 1 to) and decrementing (subtracting 1 from) a variable are so common that they have their own operators in C. There are actually two versions of each operator -- a prefix version and a postfix version. Operator Symbol Form Operation Prefix increment (pre-increment) ++ ++x Increment x, then evaluate x Prefix decrement (pre-decrement) –– ––x Decrement x, then evaluate x Postfix increment (post-increment) ++ x++ Evaluate x, then increment x Postfix decrement (post-decrement) –– x–– Evaluate x, then decrement x for Example : int x = 5 ; int y = ++ x ; // x is now equal to 6, and 6 is assigned to y int x = 5 ; ...
We are providing you better help in courses and also entertainment. Vuhelp develop assignment solutions, past papers, current papers and final project