Program to illustrate Precedence Level of Relational Operators


     # include <iostream.h>
     int main( )
     {
               int a =1 , b = 3 , c = 7 ;
        cout <<"\n"<<(a<b+c);
        cout <<" \n"<<(c-b!=a);
        cout <<" \n"<<(a++>=c);
        cout <<" \n"<<(++a==b);
        cout <<" \n"<<(c%b>a);
        cout <<" \n"<<(a*b<=-c);
        return 0;
      }

0 comments:

Post a Comment

 
 
 
 


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