CPA practice question 17 of 30

What happens when you attempt to compile and run the following code? #include using namespace std; void print(char *c); int main (int argc, const char * argv[]) { print("Test"); return 0; } void print(char *c) { cout

Full set: 220 questions
Answer options
A: It prints: Test Correct answer
B: It prints: T
C: It prints: st
D: None of these
Correct Answer:
A. It prints: Test
Scroll to Top