C Code For Implementing Stack Using Array in Data Structures

C Code For Implementing Stack Using Array in Data Structures

CodeWithHarry

3 года назад

367,462 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

CodeWithHarry
CodeWithHarry - 26.08.2020 07:36

How is the course going so far. Any suggestions?
And what about the next course? Konsa start karna hai iske baad?

Ответить
Fatima Batool
Fatima Batool - 05.10.2023 20:52

Ya c++ ma code hn stack ka?

Ответить
Ankit Singh
Ankit Singh - 25.09.2023 19:17

yes its working

Ответить
Uday Kiran Kavaturu
Uday Kiran Kavaturu - 17.09.2023 11:35

Harry bhaiya done with this thank you

Ответить
Promptly Learn
Promptly Learn - 11.09.2023 18:22

Our hero so much respect sir ❤❤

Ответить
Harshit Bagga
Harshit Bagga - 08.09.2023 23:37

worst

Ответить
Clicker End
Clicker End - 07.09.2023 22:20

Too good title of video

Ответить
GOeasyWith_MP
GOeasyWith_MP - 23.08.2023 15:47

@CodeWithHarry sir , if we are storing it in dynamic memory which is known as heap memory ,than how it would be called as stack memory?

Ответить
Sanjay Singh
Sanjay Singh - 17.08.2023 20:19

Those who getting error or blank screen:-
In video harry didnt create the memory for the pointer

Fixed code:-

struct stack* s;
s = (struct stack*) malloc(sizeof(struct stack));

Ответить
NEXT NOTIFICATION
NEXT NOTIFICATION - 02.08.2023 09:58

I have a doubt , how are u using the pointer to struct without creating an instance of that struct??

Ответить
Ayushi Raj rajput
Ayushi Raj rajput - 29.06.2023 11:02

Best understanding video ❤❤

Ответить
Himanshu Dash
Himanshu Dash - 27.06.2023 07:26

done

Ответить
Arunveer Sidhu
Arunveer Sidhu - 23.06.2023 22:20

saii ae bhai

Ответить
BIP -4
BIP -4 - 18.06.2023 11:28

im getting bus error

Ответить
Aman Kumar
Aman Kumar - 14.06.2023 07:24

Everything is working fine sir

Ответить
nishil 1.2.3
nishil 1.2.3 - 22.05.2023 20:02

what will happen if we do not write :s->arr[2]=7;
s->top++; and directly write s->arr[3]=9;
s->top++; after s->arr[1]=8;
s->top++;

Ответить
Vishal Chaurasiya
Vishal Chaurasiya - 16.05.2023 19:38

C is not a valuable programming language in today's scenario please make a course for c++ .

Ответить
Ch Umar
Ch Umar - 07.05.2023 02:12

If the stack is full and you want to push data so that state will be stack overflow. if the stack is empty and you want to pop data then the state will be stack underflow.

Ответить
Ali Abbas
Ali Abbas - 27.04.2023 18:35

Yo

Ответить
Nishil Patel
Nishil Patel - 23.04.2023 11:19

Both the functions work

Ответить
Shreyansh Dangi
Shreyansh Dangi - 15.03.2023 13:06

bcaz of you i am able to make all linked list code by myself

Ответить
Grow with Aman
Grow with Aman - 05.03.2023 10:42

in this code my vs code print nothing online compiler will give Segmentation fault

Ответить
Milind Thakare
Milind Thakare - 09.02.2023 17:38

Ye DSA Cource Ke First Video Me Bhai Tumne Kaha Tha Ki Jisko Jyda C , C++ Nahi Bhi Aati To Bhi Ye Cource End Tak Follow Karne .
DSA With C , C++ Aap Samajh Jaoge . Yahi Kaha Tha Na Harry Bhai Tumne 😅

Ответить
Ishan Manchandani
Ishan Manchandani - 07.02.2023 06:53

It's full program of stack in array Harry bhaiya

Ответить
Ayan Ahmed
Ayan Ahmed - 02.02.2023 16:47

I have segmentation fault in these code.

Ответить
SUJIT THORAT
SUJIT THORAT - 30.01.2023 21:42

👍

Ответить
Vinay Mahida
Vinay Mahida - 30.12.2022 20:25

bhai mere dimag kaa bhosda ho rah he kabse ek hi error aa rah he segmentation fault who nikla too abhi aa rha he bus error - 10........isko koi solve kardo yaar koi, 2 din se iske peechee pada hu

Ответить
O.5 kabir Bundele
O.5 kabir Bundele - 18.12.2022 19:57

Bro output not showing same code ha

Ответить
Spidy Mistry
Spidy Mistry - 16.12.2022 23:10

Can I write stack is empty or full in it's return part?ex.
Int isfull (struct stack *ptr){
If(ptr->top==ptr->size-1){
Printf("stack is full");
}}...?

Ответить
crazy  Smile 247
crazy Smile 247 - 05.12.2022 12:48

thanku harry bhai

Ответить
KSHITIJ GUPTA
KSHITIJ GUPTA - 04.12.2022 06:16

I am getting : zsh: bus error
this error and I am not able to find the reason

Ответить
UnDEAD Gaming
UnDEAD Gaming - 26.11.2022 14:34

how to do it in c++

Ответить
Sonu yadav
Sonu yadav - 26.11.2022 13:54

the code is not giving any error but its not printing anything can anyone help me out????

Ответить
VIGNESH REDDY
VIGNESH REDDY - 20.11.2022 17:58

harry ji idk y but ur source code isnt working

Ответить
mobin diwan
mobin diwan - 20.11.2022 14:00

class me stack lecture me samajh ni aaya tha . yaha aa gaya thank you harry bhai

Ответить