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

Discussion

What is typedef declaration?

  • A.Does not create a new type
  • B.It merely adds a new name for some existing type
  • C.Does not create a new type, It merely adds a new name for some existing type
  • D.None of the mentioned

Answer: C

Correct answer: Does not create a new type, It merely adds a new name for some existing type

Both halves are right, which is why the combined option is correct. A typedef name is a synonym, fully interchangeable with the original: no new type is created, no type checking distinguishes them, and passing one where the other is expected raises no complaint. This is the essential difference between typedef and a genuine new type such as a distinct struct.

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

Post your comment

Please log in or register to post a comment.