Initializing the structure - Devbhoomi

FREE JOB ALERT & ONLINE TUTORIALS

Hot

Post Top Ad

Sunday 5 November 2017

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 };

No comments:

Post a Comment

Post Top Ad