C++ Tutorial (8) - Absolute n00b spoonfeed
Uploader Comments (antiRTFM)
Top Comments
-
Thank you very much for these great C++ tutorials. :D
I readed through a lot of tutorials on the internet but most of them were like Chinese to me. Your tutorials however are very clear and fun to do. I understand it a lot better now. ^^
All Comments (111)
-
@pk1lover Signed is both positive and negative
unsigned is only positive
-
he said int is like signed long
but in da previous video int took a positive number
-
Writing in c++ with sons of obsidian theme rocks. :D
-
question: can you use a number that goest above 0 in a signed int???
-
@antiRTFM int is always signed. char may be signed or unsigned depending on what compiler you're using, but int is always signed.
-
Four billion, two hundred ninety-four million, nine hundred sixty-seven thousand, two hundred ninety five.
-
I can't express in words how good your videos are. I've learnt so much and I honestly thought that it would take ages to learn but you are such a good teacher, thank you so much. You are definitely a YouTube legend! :D
-
@iExD practice often
-
Should you only use \n for text and endl for numbers?
int by itself is a positive value?
phantomofthedrivein 1 year ago 2
@phantomofthedrivein if your asking about the default definition of just "int" (as in contrast to "unsigned short int" for example), depends on your compiler.
In Visual C++, i think by default "int" is "signed long int" which means it can have negative values
antiRTFM 1 year ago 7
Here's my question, whats the advantage of using a short int? when a long int can do everything a short int can do but more.
NoPrayer4TheDying 2 years ago
generally speaking you are right, go ahead and just always use long int.
technically though, usually short int uses less memory (2 bytes less) than long int.
in the interesting event that your program will have 100,000,000 ints, that would be 400 MB of RAM with long int, but only 200 MB of RAM with short
antiRTFM 2 years ago 32