Delicious Digg Facebook Favorites More Stumbleupon Twitter

Sunday, 26 August 2012

if-else single statement condition


               if-else single statement condition

                It is used for comparision between two  variables,
                by using symbols(?,:);

                syntax:- 
    
                             printf(condition ? "statements" :" statements");
                              

                  Example:-  
                                    #include<stdio.h>
                                    main()
                                   {
                                             clrscr();

                                        printf(3>5 ? "true" : "false");
                                        getch();
                                    }
                         
                                                                                                                                                                                                                                                                                               

              
                    

      output :-

                       

                          

Conditions of the variables


                Conditions of the Variables

           Condition is a comparison between variables.
           Conditions are divided in to 5 types.
          
           * Single statement condition.  // by using symbolic representation.

           * Multiple statements condition. // by using symbolic representation.

                * if-else condition.

          *  nested if-else condition.

          *  ladder if-else condition.

             

Saturday, 25 August 2012

Execute the program


                     Execution of program





                 Execution window:-


                       

compile the program


                     Compilation of program

        

compilation window:-
 
 


                

save the program


                     Save the program

             
  saving window:-

    




 

Friday, 24 August 2012

start write a program


                     Start write a program

           




                

icon for c


   
         After installation of C, you will find a desktop icon created. 
            Clicking on the TurboC++ icon opens  the below window
                                                                           

           
 
                                                                                   
It is called editing window.Start writing code in the
above window