Chapter - 3: Graduating to C++

What does the following prototype indicate:


D
Sections
10
Exercises

A

B

C

D

1

2

3

4

5

6

7

8

9

10

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.

 


© 2020 Garbage Valuegarbage value logo