Re: Re: [Dev-C++] Strange Behaviour with Short
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ranjith P A. <ran...@co...> - 2003-04-04 18:58:33
|
Wow, that was a stupid question, wasn't it ?. But the same code produced the exact result I wanted
in the MSVC environment.!!!. I never believed compilers have their own mind. Thanks for the tip
sheepishly
ranjith
> you dont always get your first number as 0...
> if you enter a negative number for your first number
> then you get -1 for that number in your output!!....
>
> to read short int---> scanf("%hd",&first).
>
> Ricardo.
|