C single statement after if

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Single Statement after ‘if’ Does not Require Opening and Closing Braces : Tutorial on If


  1. Single Statement after if Does not Require Opening And Closing Braces
  2. Example : 

             void main ( )

             {

             int x = 10 ;

             if ( x  > 0  )

                      printf (“n Number is Positive”);

             }