Professional Documents
Culture Documents
int main() CLO 4: Question # 7 (2 Marks): Which type of function among the
{ following shows polymorphism?
static char *s[] = {"black", "white",
"pink", "violet"}; a) Inline function
char **ptr[] = {s+3, s+2, s+1, s}, ***p;
p = ptr; b) Virtual function
++p;
printf("%s\n", **p+1); c) Undefined functions
++p;
printf("%s\n", **p+1); d) Class member functions
printf("%s\n", **p+2);
printf("%s\n", **++p+2);
return 0;
}