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

Discussion

Would the following typedef work?
typedef #include l;

  • A.Yes
  • B.No

Answer: B

Correct answer: No

typedef is part of the C language and #include is a preprocessor directive; the two belong to different phases and cannot be combined in one construct. The preprocessor would try to include a file named by whatever followed, and the compiler would meet nonsense whatever happened. So it does not work.

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

Post your comment

Please log in or register to post a comment.