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, 4377👍, 0💬
Popular Posts:
What is continuous and staged representation? CMMI contains 25 key process areas which organization ...
What is the output of printf("%d")? 1. When we write printf("%d",x); this means compiler will print ...
How To Use an Array as a Queue? - PHP Script Tips - PHP Built-in Functions for Arrays A queue is a s...
What is the sequence of UML diagrams in project? First let me say some fact about this question, you...
What will be printed as the resultof the operation below: int x; int modifyvalue() { return(x+=10); ...