2) char p[ ] = "concorde";
char *m
= "concorde":
What will be the output of puts(p) and puts(m)?
A. Both will be same
B.Both will be different
C. compilation error
D. Runtime error
Answers
Answered by
0
Answer:
char p[] = "concorde";
char *m = "concorde";
The output of puts(p) is concorde
The output of puts(m) is concorde
Since both the outputs are the same, therefore the correct option is (A) Both will be the same.
Arrays and pointers are different types that are used in a similar manner.
Similar questions