MCQs > IT & Programming > Programming With C > Which of the following declarations of structures is/are valid? 1) struct node { int count; char *word; struct node next; }Node; 2) struct node { int count; char *word; struct node *next; }Node; 3) struct node { int count; char *word; union u1 { int n1; float f1; }U; }Node;

Programming With C MCQs

Which of the following declarations of structures is/are valid?
        1)
                struct node {
                int count;
                char *word;
                struct node next;
                }Node;
        2)
                struct node {
                int count;
                char *word;
                struct node *next;
                }Node;
        3)
                struct node {
                int count;
                char *word;
                union u1 {
                        int n1;
                        float f1;
                }U;
                }Node;

Answer

Correct Answer: 2,3

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Programming With C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Programming With C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it