Computer Science, asked by bevankjoy11, 5 months ago

Give the general form of a structure​

Answers

Answered by 6707
1

Explanation:

The general syntax for a struct declaration in C is: struct tag_name { type member1; type member2; /* declare as many members as desired, but the entire structure size must be known to the compiler. */ }; Here tag_name is optional in some contexts.

Structure is a group of variables of different data types represented by a single name. Lets take an example to understand the need of a structure in C programming. Lets say we need to store the data of students like student name, age, address, id etc. ... We can solve this problem easily by using structure.

A C program is a set of definitions of three types: variables, functions and data types. Some functions and variables can be grouped in “classes” as in Java. I can use a function and then define it (include its code) in a place further down the same file.

Similar questions