+ 2

I not understand where I can solve this simple code

#include <iostream> using namespace std; void main() { void fun(); cout <<"you are in main"; fun(); } void fun() { cout <<"you are in fun"; }

24th Jun 2023, 11:37 AM
GAURAV TIWARI
GAURAV TIWARI - avatar
4 Answers
24th Jun 2023, 12:13 PM
Daniel
Daniel - avatar
+ 2
main func can't be void
24th Jun 2023, 1:22 PM
Smith Welder
Smith Welder - avatar
+ 1
What you want to output ?
24th Jun 2023, 12:03 PM
Daniel
Daniel - avatar
+ 1
Thank you smith welder
24th Jun 2023, 1:30 PM
GAURAV TIWARI
GAURAV TIWARI - avatar