programming-examples/c/Structures_and_unions/C Program to Calculate Size of Structure using Sizeof Operator.c

13 lines
252 B
C
Raw Normal View History

2019-11-15 12:59:38 +01:00
#include<stdio.h>
struct stud {
int roll;
char name[10];
int marks;
};
int main() {
int size;
struct stud s;
size = sizeof(s);
printf("nSize of Structure : %d", size);
return(0);
}