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 + */