Initializing the structure

Initializing the structure variables :
struct book
    {
    char name[10];
    float price;
    int pages;
    };
    struct book b1 = { "abc",50.00, 100 };
    struct book b2 = { "xyz", 200.00, 500 };

Post a Comment

0 Comments