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, 5085👍, 0💬
Popular Posts:
Can static variables be declared in a header file? You can't declare a static variable without defin...
What Is URI? URI (Uniform Resource Identifier) is a superset of URL. URI provides a simple and exten...
How do we enable SQL Cache Dependency in ASP.NET 2.0? Below are the broader steps to enable a SQL Ca...
What is cross page posting? By default, button controls in ASP.NET pages post back to the same page ...
.NET INTERVIEW QUESTIONS - What is the difference between System exceptions and Application exceptio...