whats int means | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

whats int means

int main()

16th Jul 2016, 4:03 AM
Avishek Raj Panta
Avishek Raj Panta - avatar
6 Antworten
+ 1
whenever any function needs to be return a value then you need to specify the type of value to be returned. int main() indicates, function main will return an integer value. Normally this value returned by main is used by OS.
16th Jul 2016, 4:12 AM
B. K.
0
why
16th Jul 2016, 4:03 AM
Avishek Raj Panta
Avishek Raj Panta - avatar
0
it means that the return value will be an integer i think
16th Jul 2016, 4:07 AM
Klára Oborná
Klára Oborná - avatar
0
oh
16th Jul 2016, 4:11 AM
Avishek Raj Panta
Avishek Raj Panta - avatar
0
thnx
16th Jul 2016, 4:12 AM
Avishek Raj Panta
Avishek Raj Panta - avatar
0
For any function, you can return a value (which must be defined before the function name (whether it be main or any other). If you have the return type 'int', the function will return an integer.
16th Jul 2016, 5:09 AM
Autumn S
Autumn S - avatar