From ef3a0ab940b61d83ab1b23d78b6af2c97dc29817 Mon Sep 17 00:00:00 2001 From: mahimadubey <54871679+mahimadubey@users.noreply.github.com> Date: Tue, 20 Oct 2020 15:48:35 +0530 Subject: [PATCH] Update structure.c --- CODE in C/Data Structures/structure.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CODE in C/Data Structures/structure.c b/CODE in C/Data Structures/structure.c index d29e6d8..24909f0 100644 --- a/CODE in C/Data Structures/structure.c +++ b/CODE in C/Data Structures/structure.c @@ -1,12 +1,12 @@ -struct StudentData{ +typedef struct StudentData{ char *stu_name; int stu_id; int stu_age; -}; +}SD; int main() { - struct StudentData student; + SD student; student.stu_name = "Test"; student.stu_id = 1234; student.stu_age = 18;