Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. Which of the following is a User-defined data type?
  2. A.
    typedef int Boolean;
    B.
    typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays;
    C.
    struct {char name[10], int age};
    D.
    All of the mentioned

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    typedef and struct are used to define user-defined data types.


Be The First To Comment