Most voted "extern" questions
4 questions
Sort by count of
-
3
votes2
answers224
viewsWhy do you use extern?
According to what I researched, the reserved word extern in C is used to inform that the declared variable is somewhere else in the program. A variable extern is useful for saving memory, because…
-
1
votes0
answers29
viewsGlobal variable in C
Good afternoon, I need to use a global variable that depends on a condition in a code. I have the following documents Code2.cpp and Code3.cpp, both contain the Code1.h. I declared an extern on…
-
0
votes2
answers75
viewsQuestions about the standard C library
I noticed that the header file (.h) are different in different compilers. So I have the doubt, is that this "C ANSI pattern" just defined which functions should have the standard library and not…
-
0
votes1
answer70
viewspass a struct using extern C on a . dll c++
I have a function that comes from a . lib that returns me a struct tabela GSTV(vector<double> inpA, vector<double> inpB); this struct is defined as follows:: struct tabela {…