C++ 面接の質問と回答
関連する比較
質問 121. What is the two main roles of Operating System?
As a resource manager
As a virtual machine
質問 122. In the derived class, which data member of the base class are visible?
In the public and protected sections.
質問 123. Could you tell something about the Unix System Kernel?
The kernel is the heart of the UNIX openrating system, it?s reponsible for controlling the computer?s resouces and scheduling user jobs so that each one gets its fair share of resources.
質問 124. What are each of the standard files and what are they normally associated with?
They are the standard input file, the standard output file and the standard error file. The first is usually associated with the keyboard, the second and third are usually associated with the terminal screen.
質問 125. Detemine the code below, tell me exectly how many times is the operation sum++ performed ?
for ( i = 0; i < 100; i++ )
for ( j = 100; j > 100 - i; j?)
sum++;
(99 * 100)/2 = 4950
The sum++ is performed 4950 times.
ユーザー評価で最も役立つ内容:
- What is C++?
- What is function overloading and operator overloading?
- What is the difference between declaration and definition?
- How do you find out if a linked-list has an end? (i.e. the list is not a cycle)
- What is the difference between realloc() and free()?