Answer to Question #22814 in C++ for Sujata Roy

Question #22814
Consider the following program segment

char*a, *b, c[10], d[10];
a = b; b = c; c = d; d = a;
choose the statements having errors
Answer options:
A. No error
B. a = b; and b = c;
C. c = d; and d = a;
D. a = b; and d = a;
1
Expert's answer
2013-02-06T10:31:00-0500
A. No error B. a = b; and b = c; C. c = d; and d = a; D. a = b; and d = a;
A has an error (because there are errors actually)
C has an error
D has an error

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS