LearnFrenzy
Sign in Take a free test

Typedef · typedef MCQ · Question 2

Can typedef be combined with static? Answer, explanation & discussion

  • MCQ
  • Hard
  • 0 comments
  • Answer explained
  • Moderated community
Question 2 Back to Exercise

Which declaration is invalid?

  • A typedef unsigned int uint;
  • B typedef static int sint; Correct
  • C typedef int Row[4];
  • D typedef int (*Fn)(void);
Correct Answer: Option B

Grammatically, typedef is a storage-class specifier, like static and extern, and a declaration may contain only one of them.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links