c**********e 发帖数: 2007 | 1 namespace
{
isDigit(char cc);
}
Which one of the following statements is true regarding the sample code
above?
a) The function "IsDigit" can be referenced from all unnamed namespaces.
b) The function "IsDigit" can be referenced from any namespace with a name.
c) The function "IsDigit" can only be referenced within the compilation unit
.
d) The namespace definition is illegal because the namespace name is missing.
e) The definition if "IsDigit" is illegal because the function body is
missing. |
E*U 发帖数: 2028 | 2 c
unit
【在 c**********e 的大作中提到】 : namespace : { : isDigit(char cc); : } : Which one of the following statements is true regarding the sample code : above? : a) The function "IsDigit" can be referenced from all unnamed namespaces. : b) The function "IsDigit" can be referenced from any namespace with a name. : c) The function "IsDigit" can only be referenced within the compilation unit : .
|
j***i 发帖数: 1278 | 3 这里的这个function 没有return type,难道是个调用?
【在 E*U 的大作中提到】 : c : : unit
|
r****t 发帖数: 10904 | |
t****t 发帖数: 6806 | 5 obviously the author of the questions is not very careful.
【在 j***i 的大作中提到】 : 这里的这个function 没有return type,难道是个调用?
|
c**********e 发帖数: 2007 | 6 Revised. Thank you.
【在 j***i 的大作中提到】 : 这里的这个function 没有return type,难道是个调用?
|