New course! Every coder should learn Generative AI!
Try a free lesson+ 3
Can we declare main function under user defined function in c++?
eg void myfunction(){ int main(){ ----------- -------- return 0; } }
3 Answers
+ 2
no, you cant have nested functions in c++
+ 2
No
0
No