What is data structure? Write short note on various data structure?
Answers
Data structure is an organisation of data ,storing format and management of data that enables efficient access of data is called data structure .
// types of data structure //
* queue : Queue is a data structure which stores data like aray in which elements are stored or inserted or added from rear end and deleted from front end .
* Aray: Also a data structure in which data elements are stored in contiguous memory addresses , which means sequentially one by one. syntax of aray = data_type aray name[size]
*linked list : Also type of data structure in which there are nodes and a pointer .pointer always points to the next node .
* pointer : also a data structure which holds an address of another variable
/ syntax of pointer :-
int *p ;
int x;
p=&x