Home » C Programming » Declarations and Initializations

Which of the structure is correct? 1 : struct book { char name[10]; float price; int pages; }; 2 : struct aa { char name[10]; float price; int pages; } 3 : struct aa { char name[10]; float price; int pages; }

Correct Answer: 1

Explanation:

In 2 and 3 semicolon are missing in structure element.

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion