If the execution of program starts from main()function, then when is the global variable declared which is written before main ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

If the execution of program starts from main()function, then when is the global variable declared which is written before main ?

14th May 2020, 3:15 PM
Om Prakash Yadav
Om Prakash Yadav - avatar
1 Answer
+ 1
Sir but I am talking about execution because the variables will be declared during the execution and not during compilation in C++
14th May 2020, 5:19 PM
Om Prakash Yadav
Om Prakash Yadav - avatar