--- TheOldWiseKing <[EMAIL PROTECTED]> wrote:
> This is because a & r are of different types, when comparing, a is
> casted to be unsigned int (32 bits) with bit 1 in the MSB, and this
> is a
> very large number.
Right.
See question 3.19: http://www.c-faq.com/expr/preservingrules.html
A few suggestions to improve the code.
> Uday Oberio wrote:
>
> > #include<stdio.h>
> > #include<conio.h>
Why is this needed? I don't see a getch() call.
> > void main()
It is preferable to return int.
> > {
> > int a=-5;
> > unsigned int r=2000;
> > if(a>r)
> > printf( " a is greater than r ");
> > else
> > printf(" r is greater than a");
> > }
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news,
photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC