Video není dostupné.
Omlouváme se.
Passing Arrays As Function Arguments: C Tutorial In Hindi #32
Vložit
- čas přidán 15. 05. 2019
- In this series of C programming tutorial videos, I have explained you everything you need to know about C language. I hope you are enjoying this C course in Hindi.
►This C Lecture is a part of this C Programming Course: • C Language Tutorials I...
►Source Code + Notes: codewithharry....
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Learn Python In Hindi ...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithha...
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
At this point in this course, aapse poochna chahunga ki course kaisa laga aapko? Koi suggestions? Let me know please and thanks a lot for your love and support :)
nice bro just add more videos on machine learning,data science,blocchain
bhai thora tough topics hain...full beginners ke liya nahi hain...
bohoth assa hay vai
practice karlo vai program likho output ko understand karlo theory mind me set ho jayega
@@legendarychest1630 practice karlo vai program likho output ko understand karlo theory mind me set ho jayega
Best channel ever for newbies and also for advance developers keep supporting him guys he is providing us free course, tutorials,exercises,practicals........thank you Harry.....keep uploading videos on c and various language for further.
tu bohot mast kaam karta he harry bhai...
you are right
You are right
print("You are right")
@@codingproxus8573
your code is producing error
Because
; Is missing according to Harry Bhai
@@mohdaarish4790 dil se likha code h , error kese dega
SIR...what is the force or feeling, that keeps you derive to work for free but at same time, in such an efficient way? Kudos Sir!
your love and support
Views
@@d4v1us he didn't had this many views 2 years ago
@@d4v1us is he not greedy for views
@@alphagaming5432 Arrey chutiye, views hi ni aayenge to video banaega kiske liye bhai apna? Saari motivation views hi hoti hai koi kuch b bole
Ye tutorial todha fast Ho Gaya
Beginner ke liye Samjna hard tha
Thank you so much harry.... earlier I was afraid of pointers... and this array pointer was too complicated for me .... but I think after this video I'm not... I gain confidence in coding and I'm enjoying it... thank you so much, man... :)
thanks a lot harry bro y really have made c interesting and fantastic.its no longer boring for me and difficult for me...i have one request please make videos on c++ (complete syllabus)and on python libraries ...
Just loving the way the course is going!!
Thank you Harry bhai for making such awesome content!❤❤
Congratulation Harry bhai you reached 6 million subscriber
Amazing vedio I'm watching daily...
Now reached at #32 vedio
I will complete full course of c language
Today dated 13 June, 2020
Target of end course is.
Up to ending 25 June, 2020
finished?
@@shivamarora9621 ur finished ?
@@X40Gaming ur finished?
@@sangdilbiswal30 ur finished?
@@player-ne6hs ur finished?
Well Explained Bhaiya 😋🙂
Okkk
@@shyamlalbhardwaj5586 okkk
ek point samj nhi aaya,ptr[i],n kaise print kardi values,wh tau address print karta?! at 18:04
kya esa arrays m hota h ?
Same doubt
Content is really nice and easy to understand. I want to know how to take a multi dimensional array as function parameter ?
the thing that you always gives the reason to use any function makes your videos best
11:40
Nike collabs with harry 😂
@15:55
harry bhai, how can I know the time complexity of any programe in visual studio.
Harry bhai aap Ik hi video me alag alag file bana ke use kia kro different types k liye ese mixed up hojata
Please flappy bird or street fight ya koi aur thoda advance game ko python me banake dikha do
In previous video you said that if it is call by reference then we can change the value in given fuction but here you are passing value to function then how it will replace value of array with new value of array in function
Answer this please
we are passing address the of array so we can change the array
he mentioned that it always pass as an pointer in array case
@@yashrawat747 But in fun1 declaration we have not taken the parameter as a pointer. So how we can store the address of an array?
And the parameter of fun2 is a pointer. So it can only store the address of a array.
Solve this query.
15:31 very important
Thankyou so muchh harry bhai ap to carry bhai nikle badi company's jo pasie leke coding padhate hai unko roast kar diya thakyou ji
which extension do you use for your syntax highlighting as mine is different
Sir volatile keyword pr ek video bnao plz
thanks bhai i will become expert in c language till your last lacture.....thanks a lot
@CodeWithHarry
harry bhaiya kya array call by value se pass nahi ho sakte? aapne bola ki changed value reflect hoga par agar change na karke pass karne ka koi tarika hai?
if(best_course_for_newbies_from noob_to_ultra_pro=="code with harry");
{
printf("THANK YOU HARRY BHAI!!");
}
else
{
printf("keep searching.....you will find better with each search ;) ");
}
19:53 multi dimensional functional array
NICE HARRY BHAIYA....
Sir turbo c pr sikhaiye please
Turbo C is an outdated discontinued IDE. Use VS code to prepare yourself for modern programming. All the best!
Thanks a lot for your love and support
@@CodeWithHarry oke thank you sir 💓🙏
Thankyou so muchh harry bhai ap to carry bhai nikle badi company's jo pasie leke coding padhate hai unko roast kar diya thakyou
Thanks Harry Bhaiya
//Passing 2D Arrays using pointers
#include
int fun(int (*ptr)[2])
{
for(int i=0;i
Excellent explained
explain me
bhai mne ye video 2nd baar dekhi ab puri smjh a gyi h
Sir please again video on this topic
Reached today at this tutorial
14:35 ,जब की ये वीडियो 4 साल पहले की है अभी में अप्रैल 24 में देख रहा हु।फिर भी हैरी को एक सलाह देना चाहता हु ,जो हर वीडियो के लिए है की ,कोई कोड का स्क्रीनशॉट लेना चाहे ,नही ले सकता है ,क्यू की मॉनिटर व्यू देखने के लिए कोड की उपर वाली लाइन स्क्रॉल की हुई होती है तो कोड और मॉनिटर विंडो इक्कठे नही दिखते बाद में हैरी फटाफट स्क्रॉल कर देते है ,तो स्क्रीनशॉट नही लिया जाता।
sirr, agar array ka lenght unknown hai and hame lenght find krna hai toh fir kaise kar skte hai?? like agar loop mein ek count variable daala toh fir bhi loop ke kitne iterations chaiye uske liye bhi length lagega na
function 2 me humne ptr[i] print kra to usse to address print hona chahiye value kyu print ho rhi hai bina * lgaye
ptr[i] any pls explain at 18:10
Same doubt
I love the way you explain ❤️
In the second example in IDE, I have a confusion in func1. We have used arr as a parameter and *ptr as a local parameter. as ptr is a pointer that should contain the adrress of array elements. But when we printed ptr in func1, it was showing the array values. Why? again when we used *(ptr=1) thats shows the value of array. I understood this point. But having confusion with the first one. Can you please explain me , Sir?
Brother we are using func(2) not a func(1) for passing parameter to the ptr , and Actually we used dereferencing there for printing the array value... (*ptr) like that!!
In his previous videos he told that arr[i] = *(arr + i) , which means that arr+i is a pointer to arr[i].
So by the same logic ptr[i] will be equal to *(ptr+i).
Nice bro garry.... Bro of carry
Nice explanation harry bhaiya....
Excellent
tysm
Had a doubt :(
When we pass array to the function either as a parameter or by using pointer,
Would it be called call by value or call by reference?
Answer for both cases !!
By reference
For values as parameter is call by value
And passing adress through pointer is call by reference
I think both should be call by reference.
how to pass 2d array is number of rows and colomns are not known or are provided by user
Harry bhai aur mere dosto ek doubt hai ki jab ham array as a parameter pass krte hai tab pass as a pointer krte hai - func1(arr); but lekin function mai as an array lete hai int func1(int array[]), toh mera doubt hai ki humne aise as an array pass krna chahiye na??
SAME CHEEJ MUJHE BHI SAMJ NHI AAYI
All clean🙂🙂
Thnq bhaiyyaaaa
Sir How to pass 2d Array in function in the form of pointer form ie by declaring pointer in the function
???
instead of that use structures
@@deveshgautam7264 ooo
func 1 aur func 2 dono mai hi adress pass ho rhe hain. diffrerence kya hai firr?
bhai agar hume aisa chahiye ki original array pe koi asar na pade to kaise karenge? bina structures ke?
PLEAZZZZZ REPLY
Harry bhai ptr to variable h to ptr[i] se element kaise print ho rhe the🙄🙄🙄🙄
Because i is increasing by 1 every time when it loops and we have passed an array to function as an argument
ye concept c++ me bhi same apply ho sakkta ha na?
very nice
Thanks bhai
Bhai agar function call Karne se array me change hota hai to fir hum original array value ko maintain kaise kare because mujhe badme bhi mere array value ki jarurat ho sakti hai
Thank you sir video upload karne ke liye
Thanks you :)
thanks alot for this sir
Hello
Love your way of teaching bhaiya
love you brother thanks for this lecture
Thank you Bhaiya excellent 👌 🙂
Bro u r legend bro may allah bless you.
Hi! Why do we get different answers here??
#include
void f1(int arr[]){
int z = sizeof(arr)/sizeof(int);
printf("%d", z);
}
int main()
{
// printf("Hello World");
int arr[] = {1,2,3,4};
int z = sizeof(arr)/sizeof(int);
printf("%d
", z);
f1(arr);
return 0;
}
Output:
4
2
how can we pass a copy of array ?? still missing that part or it's not possible . haan ??
Sum = sum + array[ ] ..how??..pls help
Harry bhai plz tell that how to pass 2 d array in function as a pointer. And how to use it
I have trying to much to pass 2d array as a pointer.
And yes I am succeed in my work.
Harry bhai plz see this and comment and give me heart.
#include
void func3(int *p,int r,int c)
{
for (int i = 0; i < r; i++)
{
for(int j=0; j
hey i have a doubt
here at time 18:06 you are printing ptr[I], because you haven't used * so it should print address not value, why it is acting as *ptr[i]??
same doubt
Excellent work harry bhai😇
CodeWithHarry Please Bro create the tutorials of python Web Scripting using the Scrapy Framework I will share your link on 10 facebook groups daily.
Thanks🎸🎸🎸🎸🎸
Harry bhai how to increase programming skills
by practicing broo ❤️🔥no other way to increase your programing skills🔥
nice class
sir yeh 3d aur 4d arrays kese hote hain 🤔
Sir aap raspberry pi pe video bnaoge?
I will make some plans soon!
Thanks
thank you sir
Hello harry bhai can u please tell me how to clear the previously run terminal code before each new run of the program...
type clear then press enter in terminal.
Thanks
Thanks
Thanks
you are doing well,but ye topoic me code understand karna little dificult for beginners.
explain me
Can we print multi dimensional array using pointer?
Same doubt
Sir can we make a pointer arry like this below
int i = 1;
int j = 2;
int k = 3;
int* ptr[3] = {&i, &j, &k};
#include
fun4(int *array[])
{
for (int i = 0; i < 3; i++)
{
printf("%d
", *array[i]);
}
}
int main()
{
int i = 78;
int j = 45;
int k = 23;
int *arr[3] = {&i, &j, &k};
fun4(arr);
return 0;
}
nice
Ok
You are legend brother 🔥🔥🔥🔥🔥🔥🔥
Aap bahut hi achha samjhate ho bhai
❣❣#video32❣❣
🌹🌹Thank you so much sir🌹🌹
💯💯Today's accomplishments were yesterday's impossibility💯💯
❤❤“If you have to put someone on a pedestal, put teachers. They are society's heroes.”❤❤
🥰🥰“The beautiful thing about learning is that no one can take it away from you.”🥰🥰
well explained but course is going slow
16:00 new concept idea 💡
@CodeWithHarry
Why this statement is not working...
*( *(ptr + j) + i)
this statement ^ is for 2d array ,
and instead of that what else can we use for 2D array?
because once you dereference the value *(ptr+j) it returns the value at the memory address and when u add i to it u can't dereference the value again as it is not a memory address. try matrices for 2D arrays
@@barkhagangwani4066 as simple as 🥧
accha lga course sir bht help milli....thank u :D
explain me
*Virtual hug *
How come I missed this video
Thank you so much sir🥺
Are arguments and parameters same ?
Yes.
@@starkendeavours7072 bhai tu pakka daru pi ke aya hai
No arguments and parameters are different
@@Chess_.64 bhai ye interchangeably use hota hai.
@@starkendeavours7072 Note the difference between parameters and arguments: Function parameters are the names listed in the function's definition. Function arguments are the real values passed to the function. Parameters are initialized to the values of the arguments supplied.
Nice
I have a question that why line "int arr[ ][2]={{1,2},{3,4}};" does not throw any error when it is written this way .
But when i make the second bracket [ ] empty instead of first one it throws error . WHY??
Bhai aap abhi konse branch aur college mein Ho...?
@@lakshchinchmalatpure2116 CSE 2020-24 batch ... pass ho chuka
what is this error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
for ( int i = 0; i < 4; i++)
Sir please tell me what software you used for coding
What is the name of software
@@deepanshuverma362visual studio IDE
7:20
Wah