What happens when you attempt to compile and run the following code?
#include
using namespace std;
int main()
{
int x=2, *y;
y = &x;
cout << *y + x;
return 0;
}
What happens when you attempt to compile and run the following code?
#include
using namespace std;
int main(){
int i = 1;
if (i++==1) {
cout << i;
} else {
cout << i-1;
}
return 0;
}
What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
class A {
int x;
protected:
int y;
public:
int z;
A() { x=1; y=2; z=3; }
};
class B : public A {
string z;
public:
void set() {
y = 4;
z = "John";
}
void Print() {
cout << y << z;
}
};
int main () {
B b;
b.set();
b.Print();
return 0;
}
What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
class A {
int x;
protected:
int y;
public:
int z;
A() { x=1; y=2; z=3; }
};
class B : public A {
public:
void set() {
y = 4; z = 2;
}
void Print() {
cout << y << z;
}
};
int main () {
B b;
b.set();
b.Print();
return 0;
}
What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
class A {
int x;
protected:
int y;
public:
int z;
};
class B : public A {
string name;
public:
void set() {
y = 2;
z = 3;
}
void Print() { cout << y << z; }
};
int main () {
B b;
b.set();
b.Print();
return 0;
}
Ceola
17 days agoAlecia
2 months agoThomasena
3 months agoHannah
4 months agoRonny
5 months agoEttie
5 months agoBrittni
6 months agoTijuana
6 months agoStephania
7 months agoIlene
7 months agoNoel
7 months agoShawna
8 months agoDonte
8 months agoMiss
8 months agoAretha
9 months agoRikki
9 months agoNickolas
9 months agoBobbye
9 months agoLeota
10 months agoDona
10 months agoStefania
10 months agoWalton
11 months agoGlory
12 months agoShawna
1 years agoTequila
1 years agoCordelia
1 years agoChuck
1 years agoBeckie
1 years ago