English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

please justfy ur ans, if possible.

2007-02-26 22:45:02 · 6 answers · asked by Balaram 1 in Computers & Internet Programming & Design

6 answers

Just 0, the fact that pointer arithmetic and union structures are possible in C suggest that it resolves and compiles all symbolic references like variable names into memory addresses, then at running time there is no memory allocated to an empty structure.

2007-02-26 23:40:54 · answer #1 · answered by Andy T 7 · 1 0

The size of an empty structure in 'c' programming will be zero, owing to the fact that the size of any structure is calculated by summing up the sizes of all the elements in the structure. And since there are no elements in the structure, the size would be zero.

2007-02-26 23:27:05 · answer #2 · answered by Ravi 2 · 1 0

The empty structure will have size zero. Usually the structure takes the size of the sum of the individual data types of the members of the structure. Since in this case there are no members the size of the structure should be zero.

2007-02-26 22:56:03 · answer #3 · answered by Anonymous · 1 0

Sizeof Structure In C

2016-12-12 06:38:17 · answer #4 · answered by saragosa 4 · 0 0

its zero . do run this code in c to get the answer :
#include
#include
struct stud
{
}
st;

void main()
{
clrscr();

printf(" Size of structure is %d",sizeof(st));
getch();
}

2007-02-26 22:57:07 · answer #5 · answered by kaur_inder 1 · 1 0

null,means 0

2007-02-26 23:06:18 · answer #6 · answered by hims 1 · 0 1

fedest.com, questions and answers