C
Cplusplus
as C++ defaults to external linkage for non-consts and non-static(right?):
Qn) why is it then : a object declared (*without* static keyword)outside
main() and outside all functions , automatically considered a static
object ?. doesn't static mean its internal linkage?
accding me if u define a object like this then A should be external linkage.
Obj A('a'); // Global
int main()
{
blah;
}
Qn) why is it then : a object declared (*without* static keyword)outside
main() and outside all functions , automatically considered a static
object ?. doesn't static mean its internal linkage?
accding me if u define a object like this then A should be external linkage.
Obj A('a'); // Global
int main()
{
blah;
}