Delicious Digg Facebook Favorites More Stumbleupon Twitter

Tuesday 21 August 2012

addition of 2 variables by using static values


                        Addition of 2 variables

           
           Static values are constant.we can't change
           the values at run time.
         
           #include<stdio.h>
            main()
           {
               int a,b,c;
               a = 10;
               b = 20;
               clrscr();
               c = a+b;
               printf(" c=%d",c);
               getch();
           }

         output:-
                      c=30   

0 comments:

Post a Comment