cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
signed variables need to be specified?
signed variables need to be specified?
Jan 19, 2014 at 8:44pm UTC
b1gzz
(20)
I'm reading a C++ book, and I'm on the part of the variables. My question is: do we need to specify a variable to signed or the compiler does it by default?
Thanks
Jan 19, 2014 at 8:48pm UTC
mutexe
(2372)
have a look at the table on this page:
http://www.cplusplus.com/doc/tutorial/variables/
and the comment directly below it.
Jan 19, 2014 at 9:09pm UTC
Stewbond
(2827)
variables are always signed by default unless explicitly stated otherwise.
Jan 19, 2014 at 10:25pm UTC
b1gzz
(20)
Thank you very much.
Topic archived. No new replies allowed.