Which is the legal function declaration with default arguments?

1.9 Which is the legal function declaration with default arguments?
A) void user_def (float x=1,int n=2, char c);
B) void user_def (float x=1, int n, char c=’a’);
C) void user_def (float x, int n=2, char c=’a’);
D) void user_def (float x, int n=2, char c)


Leave a Reply