Slip 22 - B) Write a C++ program to overload ‘display_str’ function as follows: i. void display_str(char *) - Display a string in double quotes. ii. void display_str (int n, char *)- Display first n characters from a given string. iii, void display_str (int m, int n,char *)- Display substring of a given string from position m to n.

Post a Comment

0 Comments