Комментарии:
How is the course going so far. Any suggestions?
And what about the next course? Konsa start karna hai iske baad?
Ya c++ ma code hn stack ka?
Ответитьyes its working
ОтветитьHarry bhaiya done with this thank you
ОтветитьOur hero so much respect sir ❤❤
Ответитьworst
ОтветитьToo good title of video
Ответить@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?
Ответить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));
I have a doubt , how are u using the pointer to struct without creating an instance of that struct??
ОтветитьBest understanding video ❤❤
Ответитьdone
Ответитьsaii ae bhai
Ответитьim getting bus error
ОтветитьEverything is working fine sir
Ответить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++;
C is not a valuable programming language in today's scenario please make a course for c++ .
Ответить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.
ОтветитьYo
ОтветитьBoth the functions work
Ответитьbcaz of you i am able to make all linked list code by myself
Ответитьin this code my vs code print nothing online compiler will give Segmentation fault
Ответить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 😅
It's full program of stack in array Harry bhaiya
ОтветитьI have segmentation fault in these code.
Ответить👍
Ответить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
ОтветитьBro output not showing same code ha
Ответить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");
}}...?
thanku harry bhai
ОтветитьI am getting : zsh: bus error
this error and I am not able to find the reason
how to do it in c++
Ответитьthe code is not giving any error but its not printing anything can anyone help me out????
Ответитьharry ji idk y but ur source code isnt working
Ответитьclass me stack lecture me samajh ni aaya tha . yaha aa gaya thank you harry bhai
Ответить