is it possible to nest a function in the function Main in C++ | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

is it possible to nest a function in the function Main in C++

so is it possible to nest a function inside the .main() function? im just curious and not planning on using it

17th Jun 2018, 12:26 AM
VD30
VD30 - avatar
2 Antworten
0
Why don't you just try it in the editor? The answer is no, the compiler will throw an error.
17th Jun 2018, 3:22 AM
Matthias
Matthias - avatar
0
Matthias thanks for the help. the reason i didnt test it was because im new to C++ and was working on a project but to start a new project i have to restart my IDE and then take up the space of a new project and space is also a major issue because i have a pretty bad computer. as of the time im writing this reply my computer only has 227mb free
17th Jun 2018, 11:48 AM
VD30
VD30 - avatar