Question from the C++ test

Which of the following sets of code will cause a compile time error?

Hard

Consider the following

char *p = “Welcome”;
p = “Today”;
char const * p = “Welcome”
p = “Today”;
char* const p = “Welcome”
p = “Today”;
Author: Abha AgrawaStatus: PublishedQuestion passed 455 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!