Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following function declarations is illegal?

  • A.int 1bhk(int);
  • B.int 1bhk(int a);
  • C.int 2bhk(int*, int []);
  • D.All of the mentioned

Answer: D

Correct answer: All of the mentioned

All three are illegal for the same reason: a C identifier cannot begin with a digit. 1bhk and 2bhk are not valid names, whatever their parameter lists.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.