'int' is essential to start programming? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

'int' is essential to start programming?

24th Jun 2016, 8:08 AM
Rahul Roy
Rahul Roy - avatar
2 ответов
0
You mean the 'int' before 'main()'? Well, kinda. That int before main means that the function 'main' returns a integer (look at the 'return 0' line), but you can change that to another types, like 'void' (meaning that the function returns nothing). You always need to write what the function returns, otherwise, the code will not compile. You will see more about that later, so you dont need to care about those stuff.
26th Jun 2016, 5:01 AM
Delete my account
Delete my account - avatar
0
Thank you..@Eduardo Thales Maschio Soares
26th Jun 2016, 5:09 AM
Rahul Roy
Rahul Roy - avatar