Monday, 3 October 2011

03-10-2011 Increament Operator


/*This program prints a++ then a when a is initialized with 1*/
#include<stdio.h>
#include<conio.h>
main()
{
      int a = 1;
      printf("a++ prints: %d when a = 1",a++);
      printf("\nafter doing a++ 'a' prints: %d",a);
      getche();
}


No comments:

Post a Comment