What is the size of structure in c?



What is the size of structure in c?..

Answer / Nitesh Arya

"The size of a structure in C depends on the number and type of its members. The compiler calculates the total size based on the sizes of each member. To find the size of a structure, you can use the sizeof operator."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what is the difference between auto and static keywords

1 Answers   cDot, College School Exams Tests, TCS,


What are the 32 keywords in c?

1 Answers  


How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?

2 Answers  


Which built-in library function can be used to match a patter from the string?

1 Answers  


What is a keyword?

1 Answers  


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1 Answers  


What's the best way of making my program efficient?

1 Answers   Celstream,


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

1 Answers  


Why is sizeof () an operator and not a function?

1 Answers  


What is function definition in c?

1 Answers  


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

1 Answers   Infosys,


what is pointer?

13 Answers   HCL, TCS,


Categories