Thread: What are these in the structure

  1. #1
    Registered User
    Join Date
    May 2019
    Posts
    24

    Question What are these in the structure

    hello friends,

    I want to know
    what are these in this structure

    Code:
    struct {
    
        char name[60];
        int acc_no,age;
        char address[60];
        char citizenship[15];
        double phone;
        char acc_type[10];
        float amt;
        struct date dob;
        struct date deposit;
        struct date withdraw;
    
    
        }add,upd,check,rem,transaction;
    char name[60]; int acc_no,age;
    char address[60];
    char citizenship[15];
    double phone;
    char acc_type[10];
    float amt;

    these are different type of arrays and variables

    struct date dob;
    struct date deposit;
    struct date withdraw; .. these are structures within structure

    but what about these
    Code:
    add,upd,check,rem,transaction;

  2. #2
    Registered User
    Join Date
    May 2019
    Posts
    199
    These end up being instances of that struct, in global scope. The struct itself isn't given a name, making it an unnamed struct with those instances.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 09-26-2018, 06:04 AM
  2. Replies: 5
    Last Post: 08-04-2017, 07:42 AM
  3. Replies: 10
    Last Post: 03-18-2014, 10:43 AM
  4. Replies: 4
    Last Post: 04-25-2010, 10:57 AM

Tags for this Thread