Posted by : thedev27 Friday, October 25, 2013



#include<stdio.h>

main()
{
   int a = 1, b = 2;

   /* Storing result of addition in variable a */

   a = a + b;

   /* Not recommended because original value of a is lost  
    * and you may be using it somewhere in code considering it 
    * as it was entered by the user. 
    */

   printf("Sum of a and b = %d\n", a);

   return 0;
}

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Powered by Blogger.

Popular Posts

Followers

Labels

- Copyright © 2013 infocentre -Windows Offer- Powered by Blogger - Designed by OfferWala -