Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Referring to the sample code above, on which one of the following lines does an initializer list occur?
1: class Foo {
2: int size; string name; double value;
3:
4: public:
5: Foo() : size(0), name("unknown"), value(0.0) {
6: }
7: Foo(int s) {
8: size = s; name = "unknown"; value = 0.0;
9: }
10: Foo(int s = 0, string n = "unknown", double v=0) {
11: size = s; name = n; value = v;
12: }
13: };
Referring to the sample code above, on which one of
the following lines does an initializer list occur?
1) Line 2
2) Line 5
3) Line 8
4) Line 10
5) Line 11
✍: Guest
2012-04-26, 2782👍, 0💬
Popular Posts:
How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? Unicode requires 1...
How does one iterate through items and records in a specified block? One can use NEXT_FIELD to itera...
What is the difference between "calloc(...)" and "malloc(...)"? 1. calloc(...) allocates a block of ...
What exactly happens when ASPX page is requested from Browser? Note: - Here the interviewer is expec...
Give me the example of SRS and FRS SRS :- Software Requirement Specification BRS :- Basic Requiremen...