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

Discussion

How many number of pointer (*) does C have against a pointer variable declaration?

  • A.7
  • B.127
  • C.255
  • D.No limits

Answer: D

Correct answer: No limits

The standard sets no limit on the number of levels of indirection, and a conforming implementation must support at least twelve pointer, array and function declarators modifying a type. In practice more than two or three levels is a sign that the design would be better served by a structure or a typedef, since the declarations become almost unreadable.

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

Post your comment

Please log in or register to post a comment.