Chapter - 3: Graduating to C++

What does the following prototype indicate:


D
Sections
10
Exercises

const char*fun (char const*, const char*);


Ans: Return type of the function is constant char,  but a variable pointer, that means we cannot modifythe content returned by the function. And the arguments are the same as its return type. That means, we cannot modify the strings passed in this function.

 


© 2021 Garbage Valuegarbage value logo