由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - C++ Q93 - Q95 (转载)
相关主题
difference between: char** p and char*p[] ??is smart_ptr really that good?
C++ Q90 - Q92 (转载)pointer overflow
C++中怎么传递std::hex这样的参数啊C++ Q05: pointer to constant variable
请教 C++的一个困惑 (operator delete)int F::*x = &F::x是什么意思?
这段code有啥问题?c++ 里用到pointer 的地方我们尽可能用smart pointer吗?
还是成员函数指针,试试这个诡异的东东吧。不如各位高手挑个专题讲讲C++11吧
问题Go adopts JavaScript’s idea of semicolon insertion
Why do I need to use "plain" pointer?pointer to base class = new derived, what will happend??
相关话题的讨论汇总
话题: c++话题: type话题: address话题: integer话题: pointer
进入Programming版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
【 以下文字转载自 JobHunting 讨论区 】
发信人: careerchange (Stupid), 信区: JobHunting
标 题: C++ Q93 - Q95
发信站: BBS 未名空间站 (Fri Oct 14 23:32:57 2011, 美东)
C++ Q93: formal parameter T
What is the purpose of declaring the formal parameter T?
A. T specifies that any data sent to the function template must be of type T
B. T is a place-holder for a C++ data type
C. T can only hold a single data type int
D. T can hold any language data type
C++ Q94: Pointer
Multiple choices: Identify the true statements about the use of pointers in
C++.
A. A pointer is a variable that can contain the memory address of another
variable as its value
B. Although not necessary, pointers make the use of dynamic memory
allocation more efficient
C. You can use casting to cause a pointer of one type to reference the
memory address of a variable of another type
D. In a cout statement, you can use a pointer to display a memory address,
but not the value stored at that address
C++ Q95: Files and Streams
Multiple choice: Which of the following statements are true about writing an
integer to a file?
A. The write() function must know the exact location of the integer and the
address operator (&) enables it to locate it
B. The write() function must know the size of the integer and the address
operator (&) returns the amount of storage needed for it
C. The write() function must know the exact location of the integer and the
sizeof operator enables it to locate it
D. The write() function must know the size of the integer and the sizeof
operator enables it to locate it
1 (共1页)
进入Programming版参与讨论
相关主题
pointer to base class = new derived, what will happend??这段code有啥问题?
what does this mean?还是成员函数指针,试试这个诡异的东东吧。
问个c调用fortran函数的问题问题
[合集] C help(urgent)!!! thanks a lot!!Why do I need to use "plain" pointer?
difference between: char** p and char*p[] ??is smart_ptr really that good?
C++ Q90 - Q92 (转载)pointer overflow
C++中怎么传递std::hex这样的参数啊C++ Q05: pointer to constant variable
请教 C++的一个困惑 (operator delete)int F::*x = &F::x是什么意思?
相关话题的讨论汇总
话题: c++话题: type话题: address话题: integer话题: pointer