MCQs
Total Questions : 7
Answer: Option C. -> prototype
By defining a function's prototype in another file means, we can inherit all the features
from the source function.
Answer: Option C. -> make the entity visible only to that block
None.
Answer: Option B. -> extern
extern keyword is used to represent identifiers from other programs.
Answer: Option B. -> external
None.
Answer: Option A. -> 842
In this program, we have created a header file and linked that into the source program and we
are post incrementing that because of that it is printed as 842.
Output:
$ g++ link.cpp
$ a.out
842
Answer: Option A. -> static
None.
Answer: Option C. -> 3
There are three types of linkage in c++. They are internal linkage, external linkage and
no linkage.