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, 4531👍, 0💬
Popular Posts:
How could Java classes direct program messages to the system console, but error messages, say to a f...
What is hashing? To hash means to grind up, and that's essentially what hashing is all about. The he...
What are the two kinds of comments in JSP and what's the difference between them? <%-- JSP Co...
How To Assign Query Results to Variables? - Oracle DBA FAQ - Working with Database Objects in PL/SQL...
Are risk constant through out the project ? * Never say that risk is high through out the project. R...