Computer Science, asked by sukhpreet91791, 3 months ago

short note on structure and pointer​

Answers

Answered by Anonymous
4

Answer:

In a union, one block is used by all the member of the union. However, in case of a structure, each member has its own memory space. POINTERS 4.7 POINTERS A pointer is a variable which contains the address in memory of another variable. We can have a pointer to any variable type.

Answered by ravibala47
1

Answer:

Structure is a user-defined datatype in C language which allows us to combine data of different types together. Structure helps to construct a complex data type which is more meaningful. It is somewhat similar to an Array, but an array holds data of similar type only. ... In structure, data is stored in form of records.

A Pointer in C language is a variable which holds the address of another variable of same data type. Pointers are used to access memory and manipulate the address. Pointers are one of the most distinct and exciting features of C language. It provides power and flexibility to the language.

In a union, one block is used by all the member of the union. However, in case of a structure, each member has its own memory space. POINTERS 4.7 POINTERS A pointer is a variable which contains the address in memory of another variable. We can have a pointer to any variable type.

hope it is useful

Attachments:
Similar questions