Program for illustration of Boolean Data Type


   #include <iostream.h>
   int main( )
   {
       bool flag=false;
       cout<<"Flag = "<<flag<<"\n";

       flag = true ;
       cout << "Flag = " <<flag << "\n" ;

       return 0;
    }

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|