This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: do I need to report this in the bug list?


Sridhar <asridhar@ishoni.com>:
> My problem is that a, becomes zero after the scanf operation of b. And when
> I tried to use %h instead of %d the program did even stop for the inputs. I

%h is a modifier.  you need to say "%hd".

actually, you should say "%hu" since you're using unsigned short ints.
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]