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, which one
of the numbered lines of code is legal C++?
class Foo {
int i;
public:
Foo(int x) : i(x) { }
};
1: Foo *f = new Foo;
2: Foo &f = new Foo(1);
3: int i = Foo::i;
4: Foo *af = new Foo[10];
5: const Foo &af = Foo(1);
Referring to the sample code above, which one
of the numbered lines of code is legal C++?
1) Line 1
2) Line 2
3) Line 3
4) Line 4
5) Line 5
✍: Guest
2012-04-27, 4436👍, 0💬
Popular Posts:
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]? a[i] == *...
What are database triggers? How are the triggers fired? Read this collection of questions and answer...
Can static variables be declared in a header file? You can't declare a static variable without defin...
What is the difference between "calloc(...)" and "malloc(...)"? 1. calloc(...) allocates a block of ...
What will be printed as the result of the operation below: main() { int x=20,y=35; x=y++ + x++; y= +...