Frequently Asked C Language Interview Question & Answers

Is there any data type in C with variable size?

Yes, Struct is one of the datatype in C that have variable size. It is because the size of the structure depends on the fields which can be variable as set by the user.