netx_iit

increment and decrement operator

Jul 29th, 2020 (edited)
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. /* increment and decrement operator pre and post*/
  2. #include<stdio.h>
  3. #include<conio.h>
  4. int main()
  5. {
  6.     int a=30,b=40;
  7.     printf("\nvalue of a is %d",--a);
  8.     printf("\nvalue of a is %d",a);
  9.     ( a++ + --b + ++b - a-- )
  10.     return 0;
  11. }
Add Comment
Please, Sign In to add comment