Комментарии:
thanks
Ответитьtip 2: But we cannot perform the operation b++ in the function add(). In the add function, if the parameter b is declared as int b[], you cannot perform pointer arithmetic operations like b++ directly on the array parameter itself. This is because, in the function signature int add(int b[], int len), b is treated as a pointer to the first element of the array, and not as an actual array.
If you need to perform pointer arithmetic or modify the pointer itself within the function, you should declare the parameter as int *b instead. This allows you to manipulate the pointer b using operations like b++, b+1, etc., which would not be possible if b is declared as int b[].
Hi sir i wacthed your too mach electronic and you saved my ass too many time
But i wanna tell you that its not arey and array and you can you strlen() function for length
Sir your video are nice and to the point
Ответитьfinally got the concept sir , thanks
Ответитьgreat explaining thank you sir
Ответитьthank you so much
Ответитьawsm explanation on the topic its such a complex topic but we all got it
Ответитьsir how is *b[ ] and b[ ] are same
Ответитьthank you for keeping it short, it was exactly what I needed
ОтветитьIn the previous quiz you said C uses pass by value by default. But array uses pass by reference by default. So Answer should be "both" then
Ответитьusually i dont comment , but the effort and the way your explaining is OP . lots of love and I wish you have a beatufil and lovely life with all the blessings of your family(subscribers)😍
ОтветитьIf anyone watching this video and understood plzz answer my question:
If b[] is an array storing address then it should be termed as int *b[] as it is storing adrress.
i cant understand your grammar
ОтветитьIs this dynamic memory allocation? We have not given the size of array b. Will it take the same size of array a? Plz reply
Ответитьwho is out here passing grinding for finals?
ОтветитьI have a doubt that if b is a pointer then what does b[ i ] means because b is now a pointer and then what does these square bracket means I.e b[ i ]
ОтветитьThank you soo much !!
ОтветитьSir from the pointers topic you are going quite fast. For slow learners like me it's somewhat difficult to catch up with you. Hope you understand.
ОтветитьThis academy make the perfect vedio on every topic not wasting the time even for a moments
ОтветитьThis video does not support subtitles. How do I turn it on?
ОтветитьThank u so much sir
Mujhe y concept samajh nhi aa raha tha but ab aa gya
Sir, Could you please make a tutorial on javascript, Thank you!
Ответитьint add(int b[],int len)
above is same as below
int add(int *b,int len)
to pass address you would have to put &a to pass the base address.
ОтветитьThank you so much sir.
I had confusion in this topic since a while but now you cleared my head out of confusion.
What if I wanna pass a matrix?
Ответитьhow to pass array if we are taking input via scanf()
Ответитьif the array name points to the first location only then how sizeof(<array name>) returns the total size of the array?
ОтветитьWhy doesn't a have an * or & associated with it, also why don;t you declare a pointer variable? thanks
ОтветитьHow can we declare (int b[],int len) in the main function and how we write anything in the barces
ОтветитьThank you! This video is great!
Ответитьi hv written the same code in code blocks, but i m getting output as 1 that means it is just giving output as just first element and not the sum ..please help
Ответитьcan we put an expression inside the square brackets of an array
Ответитьsir I am unable to get the correct sum instead getting some random integer as output. I had written the program as such. Really disappointed with your codes. Please address to my issue.
ОтветитьArrey sir nice explaination
ОтветитьOh, b[ ] means is like a pointer *b
ОтветитьThanks for the video . It's Soo easy ❤️❤️
ОтветитьSir but here you waste a full array memory in function
Ответитьint add(int b[],int len)
is above same as below as used in video for function definition first line?
int add(int *b,int len)
Sir,how can int b[ ]=int *b
ОтветитьTHANK YOU SO MUCH
Ответитьyou are the best thank u so much
ОтветитьWhat a explanation thanks sir
ОтветитьBut we cannot perform the operation b++ in the function add().
ОтветитьSir can u plz upload same course for C++ as well
Ответить