From 9b399d8fd3b36ba7a525df7225eb52b0b0ca6334 Mon Sep 17 00:00:00 2001 From: Thiago Monteles <37663376+thiagomonteles@users.noreply.github.com> Date: Sun, 7 Oct 2018 17:16:36 -0300 Subject: [PATCH] Changing the most used form of Structs --- Stucture/SizeS.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Stucture/SizeS.c b/Stucture/SizeS.c index 28854c3..ea83e03 100644 --- a/Stucture/SizeS.c +++ b/Stucture/SizeS.c @@ -6,16 +6,17 @@ #include +#include -struct stud { +typedef struct stud { int roll; char name[10]; int marks; -}; +}Stude; int main() { int size; - struct stud s; + Stude stud s; size = sizeof(s); printf("nSize of Structure : %d", size); @@ -42,4 +43,4 @@ int main() { ---------- sizeof is Operator not function sizeof Operator Takes any Variable as Parameter. - */ \ No newline at end of file + */