It is an organized collection of logically related fields that are referenced by a common name.

Structure

syntax:

struct structure_tag

{data_type variable1;

…………………}structure_variable;

eg:-

struct date

{ int day;

int month;

int year;

}dob;

The dot operator (.)connects a structure variable with a structure element. syntax: structure_variable.element_name;

Nested Structure- One structure contains another structure.

Pointer

A variable which holds the address of another variable. Pointer concept was introduced by Harold Lawson.

Declaration: datatype *variable;

Address of operator(&)-to get the address of a variable.

Value at operator(indirection) (dereference)(*)-retrieves the value at a particular location.

The dot operator (.)connects a structure variable with a structure element. syntax: structure_variable.element_name;

Nested Structure- One structure contains another structure.

9446047847
sucheshsb@gmail.com