C
Chip
Hi all,
I've just gone thru a so called e-learning course on the web and I
found that one of the test question is interesting.
Here is the question:
What is the relationship between the C and C++ programming languages?
1. They are both object-oriented programming languages
2. They are interoperable languages
3. C++ changes the syntax used in C
4. C++ evolved from C
I select the choice number 4 as my answer. (You are allowed to select
more than one choice if you think they are corrected)
But when I look at the model answer, it says that both choice 2 and 4
are correct. Well, I'm pretty sure choice number 4 is correct but I'm
don't think choice number 2 is. So I called up the Online Mentor and
chat with him for half an hour but the expert on the other side cannot
give me a satisfy answer.
Here is the explanation given by the mentor.
1. C is a subset of C++ (I agree)
2. Program written in C will work in a C++ environment (I agree)
3. Program written in C++ without using any C++ feature will work in a
C environment (I agree, but I would rather call it a c program instead)
4. So they are interoperable. (I don't get it)
Anybody can enlighten me please.
Rgds,
Chip Ling
I've just gone thru a so called e-learning course on the web and I
found that one of the test question is interesting.
Here is the question:
What is the relationship between the C and C++ programming languages?
1. They are both object-oriented programming languages
2. They are interoperable languages
3. C++ changes the syntax used in C
4. C++ evolved from C
I select the choice number 4 as my answer. (You are allowed to select
more than one choice if you think they are corrected)
But when I look at the model answer, it says that both choice 2 and 4
are correct. Well, I'm pretty sure choice number 4 is correct but I'm
don't think choice number 2 is. So I called up the Online Mentor and
chat with him for half an hour but the expert on the other side cannot
give me a satisfy answer.
Here is the explanation given by the mentor.
1. C is a subset of C++ (I agree)
2. Program written in C will work in a C++ environment (I agree)
3. Program written in C++ without using any C++ feature will work in a
C environment (I agree, but I would rather call it a c program instead)
4. So they are interoperable. (I don't get it)
Anybody can enlighten me please.
Rgds,
Chip Ling