1. // file_1(.)cc defines and initializes a const that is accessible to other files 2. 3. extern const int bufSize = fcn(); 4. 5. // file_2(.)cc 6. extern const int bufSize; // uses bufSize from file_1 7. 8. // uses bufSize defined in file_1 9. 10. for (int index = 0; index != bufSize; ++index) 11. // ... Cant I direction use bufsize in loop ? Do i need to type again extern const int bufsize ?
Hope after my inter ends, i would binge this episode.
Lecture was really amazing
I love Neso Academy. ❤️
Please complete data structure
Thanks for uploading sir
Hlw sir...this is amazing lecture but can you please video lecture on data science courses🙏
Please complete c++ fast
Class object can not be constant?
Frst like🔥
1. // file_1(.)cc defines and initializes a const that is accessible to other files
2.
3. extern const int bufSize = fcn();
4.
5. // file_2(.)cc
6. extern const int bufSize; // uses bufSize from file_1
7.
8. // uses bufSize defined in file_1
9.
10. for (int index = 0; index != bufSize; ++index)
11.
// ...
Cant I direction use bufsize in loop ? Do i need to type again extern const int bufsize ?
Declaration and Initialization have been done in File 1 but Do I still need to again write the declaration in the file2 ?