Q1- What is a Data Structure?

a data structure is a way of organizing and storing data in a computer so that it can be accessed and manipulated efficiently

DATA STRUCTURE is a set of arrangement of dataâ€¦which enables to access program in efficient time,â€¦two types: linear â€” array,linked list,stack,queueand non linear data structureâ€”tree&graph

```
Data structure is the way to arrange data in main memory(RAM) in efficient mannner
```

it is way of storing and organizing data.

It is a way to organize data that enables it to be processed in an efficient time

Q2- What is LIFO explain it by giving real life examples!!

lifo - last in first out

arrange plate in our kitchen(first in last out)

lifo is LAST IN AND FIRST OUTâ€¦example:stack of books and piles of platesâ€¦we can peek on first book and remove the top most element which is added last

LIFO -LASTIN FIRST OUT done in stack ex :- set of books

example dishes ,

we stack dishes on top of each other and take the last one first

Q3- Whatâ€™s the difference between Stack and Array ??

STACK is a arrangement of data in upper sequential orderâ€¦we cannot traverse in between or remove the random or specific elementsâ€¦but array is a set of elements which can be traverse all through and any function can happen like remove push at any position

- Array: An array is a collection of elements of the same data type arranged in contiguous memory locations, where each element can be accessed using its index.
- Stack: A stack is a linear data structure that follows the Last-In-First-Out (LIFO) principle, where the last element added to the stack is the first one to be removed

array is a type of linear data structure it organaize data in a sequential form

wherease stacks stores data in a non linear method.

Hi sorry students unfortunately due to some reasons our session ended so will connect tomorrow no issues if have some issues regarding that you can just let me know here in this thread!!