Advertisement
AbdRoufBUET

PreAndPostIncreament

Feb 6th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int p = 5;
  6.     int q = 10;
  7.  
  8.     printf("++p = %d \t q++ = %d",++p,q++);//post increment isn't reflect
  9.  
  10.     printf("++p = %d \t q++ = %d",p,q);//here post increment is reflect
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement