struct basics

 #include <stdio.h>

#include <string.h>

struct employee{

    int eid;

    float salary;

    char name[34];

};


int main() {

    // Write C code here

    struct employee e1 ;

    e1.eid=123232;

    e1.salary=3400000005;

    strcpy(e1.name,"Sayan");

    printf("%d",e1.eid);

    

    return 0;

}

Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings