Video není dostupné.
Omlouváme se.

Passing Arrays As Function Arguments: C Tutorial In Hindi #32

Sdílet
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

Komentáře • 285

  • @CodeWithHarry
    @CodeWithHarry  Před 5 lety +178

    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 :)

    • @financewithsom485
      @financewithsom485 Před 5 lety +4

      nice bro just add more videos on machine learning,data science,blocchain

    • @legendarychest1630
      @legendarychest1630 Před 5 lety +4

      bhai thora tough topics hain...full beginners ke liya nahi hain...

    • @tanvirkhan6707
      @tanvirkhan6707 Před 5 lety +4

      bohoth assa hay vai

    • @tanvirkhan6707
      @tanvirkhan6707 Před 5 lety +2

      practice karlo vai program likho output ko understand karlo theory mind me set ho jayega

    • @tanvirkhan6707
      @tanvirkhan6707 Před 5 lety +2

      @@legendarychest1630 practice karlo vai program likho output ko understand karlo theory mind me set ho jayega

  • @aio-withtheease9612
    @aio-withtheease9612 Před 5 lety +83

    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.

  • @sagarvariya5833
    @sagarvariya5833 Před 5 lety +107

    tu bohot mast kaam karta he harry bhai...

  • @manush7025
    @manush7025 Před 5 lety +45

    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!

    • @honeykashyap6832
      @honeykashyap6832 Před 3 lety +2

      your love and support

    • @d4v1us
      @d4v1us Před 3 lety +1

      Views

    • @yash.gupta_
      @yash.gupta_ Před 2 lety +9

      @@d4v1us he didn't had this many views 2 years ago

    • @alphagaming5432
      @alphagaming5432 Před 2 lety

      @@d4v1us is he not greedy for views

    • @d4v1us
      @d4v1us Před 2 lety +1

      @@alphagaming5432 Arrey chutiye, views hi ni aayenge to video banaega kiske liye bhai apna? Saari motivation views hi hoti hai koi kuch b bole

  • @palakpanpaliya829
    @palakpanpaliya829 Před 3 lety +10

    Ye tutorial todha fast Ho Gaya
    Beginner ke liye Samjna hard tha

  • @pravinkakade8810
    @pravinkakade8810 Před 3 lety +7

    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... :)

  • @KundanKumar-ft9uu
    @KundanKumar-ft9uu Před 4 lety +13

    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 ...

  • @nishitjadiya
    @nishitjadiya Před rokem +6

    Just loving the way the course is going!!
    Thank you Harry bhai for making such awesome content!❤❤

  • @MicaEditz3377
    @MicaEditz3377 Před 3 měsíci +2

    Congratulation Harry bhai you reached 6 million subscriber

  • @schoollife1284
    @schoollife1284 Před 4 lety +10

    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

  • @aakash9025
    @aakash9025 Před 5 lety +19

    Well Explained Bhaiya 😋🙂

  • @ira9184
    @ira9184 Před 2 lety +2

    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 ?

  • @avikghosh244
    @avikghosh244 Před 3 lety +5

    Content is really nice and easy to understand. I want to know how to take a multi dimensional array as function parameter ?

  • @anushkakushwah9667
    @anushkakushwah9667 Před 2 lety +2

    the thing that you always gives the reason to use any function makes your videos best

  • @ShubhamPatil-hr4my
    @ShubhamPatil-hr4my Před 3 lety +6

    11:40
    Nike collabs with harry 😂

  • @paraskumar693
    @paraskumar693 Před 3 lety +3

    @15:55

  • @vaibhavgupta1168
    @vaibhavgupta1168 Před 5 lety +5

    harry bhai, how can I know the time complexity of any programe in visual studio.

  • @riyan8p
    @riyan8p Před rokem +1

    Harry bhai aap Ik hi video me alag alag file bana ke use kia kro different types k liye ese mixed up hojata

  • @abhaypunia616
    @abhaypunia616 Před 5 lety +6

    Please flappy bird or street fight ya koi aur thoda advance game ko python me banake dikha do

  • @sciencejournal8831
    @sciencejournal8831 Před 4 lety +5

    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

    • @kailassalavath6539
      @kailassalavath6539 Před 4 lety +1

      Answer this please

    • @hritavsinghsolanki8893
      @hritavsinghsolanki8893 Před 3 lety +1

      we are passing address the of array so we can change the array

    • @yashrawat747
      @yashrawat747 Před 2 lety

      he mentioned that it always pass as an pointer in array case

    • @satyamrawat4079
      @satyamrawat4079 Před 2 lety +2

      @@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.

  • @rishikumar-uf7tu
    @rishikumar-uf7tu Před 2 měsíci +1

    15:31 very important

  • @anonymousgerman2809
    @anonymousgerman2809 Před 3 lety +1

    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

  • @abhinavmishra7423
    @abhinavmishra7423 Před 3 lety +4

    which extension do you use for your syntax highlighting as mine is different

  • @harphoolmeena5555
    @harphoolmeena5555 Před 5 lety +3

    Sir volatile keyword pr ek video bnao plz

  • @SumitSingh-xu4qs
    @SumitSingh-xu4qs Před 4 lety +1

    thanks bhai i will become expert in c language till your last lacture.....thanks a lot

  • @sayakmondal7180
    @sayakmondal7180 Před 3 lety +1

    @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?

  • @SANJAYDAS-zh7fw
    @SANJAYDAS-zh7fw Před 2 lety

    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 ;) ");
    }

  • @rishikumar-uf7tu
    @rishikumar-uf7tu Před 2 měsíci

    19:53 multi dimensional functional array

  • @abdurrehmanansari9219
    @abdurrehmanansari9219 Před 2 lety +1

    NICE HARRY BHAIYA....

  • @SS-ul4mk
    @SS-ul4mk Před 5 lety +3

    Sir turbo c pr sikhaiye please

    • @CodeWithHarry
      @CodeWithHarry  Před 5 lety +7

      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

    • @SS-ul4mk
      @SS-ul4mk Před 5 lety

      @@CodeWithHarry oke thank you sir 💓🙏

  • @JenilMendpara
    @JenilMendpara Před rokem +1

    Thankyou so muchh harry bhai ap to carry bhai nikle badi company's jo pasie leke coding padhate hai unko roast kar diya thakyou

  • @royfamily9273
    @royfamily9273 Před 2 lety +1

    Thanks Harry Bhaiya

  • @navagharkiran5769
    @navagharkiran5769 Před měsícem +1

    //Passing 2D Arrays using pointers
    #include
    int fun(int (*ptr)[2])
    {
    for(int i=0;i

  • @engineerbhai7642
    @engineerbhai7642 Před 5 lety +4

    Excellent explained

  • @abhishekpandit6287
    @abhishekpandit6287 Před 3 lety +1

    bhai mne ye video 2nd baar dekhi ab puri smjh a gyi h

  • @ravindrajadhav704
    @ravindrajadhav704 Před 4 lety +2

    Sir please again video on this topic

  • @NitinKumar-qk1fi
    @NitinKumar-qk1fi Před 4 lety +3

    Reached today at this tutorial

  • @victorb22622
    @victorb22622 Před 3 měsíci

    14:35 ,जब की ये वीडियो 4 साल पहले की है अभी में अप्रैल 24 में देख रहा हु।फिर भी हैरी को एक सलाह देना चाहता हु ,जो हर वीडियो के लिए है की ,कोई कोड का स्क्रीनशॉट लेना चाहे ,नही ले सकता है ,क्यू की मॉनिटर व्यू देखने के लिए कोड की उपर वाली लाइन स्क्रॉल की हुई होती है तो कोड और मॉनिटर विंडो इक्कठे नही दिखते बाद में हैरी फटाफट स्क्रॉल कर देते है ,तो स्क्रीनशॉट नही लिया जाता।

  • @chirayuvyas7078
    @chirayuvyas7078 Před 4 měsíci

    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

  • @prathamsharma3502
    @prathamsharma3502 Před 2 lety +1

    function 2 me humne ptr[i] print kra to usse to address print hona chahiye value kyu print ho rhi hai bina * lgaye

  • @navinpoonia589
    @navinpoonia589 Před 3 lety +3

    ptr[i] any pls explain at 18:10

  • @anujjadhav2771
    @anujjadhav2771 Před 3 lety +3

    I love the way you explain ❤️

  • @mobasserahmad1619
    @mobasserahmad1619 Před 3 lety +6

    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?

    • @SachinSingh-tr4td
      @SachinSingh-tr4td Před rokem +1

      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!!

    • @100MIL28
      @100MIL28 Před rokem +1

      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).

  • @dikshantrajput7259
    @dikshantrajput7259 Před 5 lety +2

    Nice bro garry.... Bro of carry

  • @robinskrd
    @robinskrd Před 3 lety +1

    Nice explanation harry bhaiya....

  • @codewithharryfanchannel559

    Excellent

  • @ankit7096
    @ankit7096 Před 2 lety +1

    tysm

  • @ramgulhane1468
    @ramgulhane1468 Před 2 lety +2

    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 !!

  • @mihirbadkur449
    @mihirbadkur449 Před 3 lety +1

    how to pass 2d array is number of rows and colomns are not known or are provided by user

  • @akshaygovardhan6793
    @akshaygovardhan6793 Před 3 lety +2

    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??

  • @satyam5075
    @satyam5075 Před 2 lety +1

    All clean🙂🙂

  • @triptipal58
    @triptipal58 Před 3 lety +1

    Thnq bhaiyyaaaa

  • @saurabhkoli8517
    @saurabhkoli8517 Před 4 lety +9

    Sir How to pass 2d Array in function in the form of pointer form ie by declaring pointer in the function
    ???

  • @GamingRealRacing3
    @GamingRealRacing3 Před 3 lety +1

    func 1 aur func 2 dono mai hi adress pass ho rhe hain. diffrerence kya hai firr?

  • @bossysmaxx3327
    @bossysmaxx3327 Před 3 lety +1

    bhai agar hume aisa chahiye ki original array pe koi asar na pade to kaise karenge? bina structures ke?

  • @GauravKumar-ck7rs
    @GauravKumar-ck7rs Před 4 lety +3

    PLEAZZZZZ REPLY
    Harry bhai ptr to variable h to ptr[i] se element kaise print ho rhe the🙄🙄🙄🙄

    • @pradeeppradhan1645
      @pradeeppradhan1645 Před 3 lety

      Because i is increasing by 1 every time when it loops and we have passed an array to function as an argument

  • @ShubhamKumar-et7gx
    @ShubhamKumar-et7gx Před 3 lety +1

    ye concept c++ me bhi same apply ho sakkta ha na?

  • @manidevi7092
    @manidevi7092 Před 4 lety +2

    very nice

  • @omkoli3077
    @omkoli3077 Před 3 lety +1

    Thanks bhai

  • @sohanraulb.techcsebhaba2027

    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

  • @tivarsa
    @tivarsa Před 5 lety +3

    Thank you sir video upload karne ke liye

  • @moinahmad7139
    @moinahmad7139 Před 2 lety +1

    thanks alot for this sir

  • @prakhargupta1556
    @prakhargupta1556 Před 5 lety +1

    Love your way of teaching bhaiya

  • @Yogeshkakade3227
    @Yogeshkakade3227 Před 3 lety +2

    love you brother thanks for this lecture

  • @NigarF173
    @NigarF173 Před 4 lety +2

    Thank you Bhaiya excellent 👌 🙂

  • @jazibqureshi4821
    @jazibqureshi4821 Před 2 lety +1

    Bro u r legend bro may allah bless you.

  • @kunalnandanwar5041
    @kunalnandanwar5041 Před 2 lety

    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

  • @bharatsahay2264
    @bharatsahay2264 Před 2 lety +1

    how can we pass a copy of array ?? still missing that part or it's not possible . haan ??

  • @rinkyakepaapa8470
    @rinkyakepaapa8470 Před 2 lety +1

    Sum = sum + array[ ] ..how??..pls help

  • @jaypatel9392
    @jaypatel9392 Před 4 lety +2

    Harry bhai plz tell that how to pass 2 d array in function as a pointer. And how to use it

    • @jaypatel9392
      @jaypatel9392 Před 4 lety

      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

  • @gauravsrivastava7340
    @gauravsrivastava7340 Před 2 lety +1

    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]??

  • @GaneshShinde-ls1iy
    @GaneshShinde-ls1iy Před 4 lety +1

    Excellent work harry bhai😇

  • @Zeeshantariqpkn
    @Zeeshantariqpkn Před 5 lety +2

    CodeWithHarry Please Bro create the tutorials of python Web Scripting using the Scrapy Framework I will share your link on 10 facebook groups daily.

  • @Raj-ko5qv
    @Raj-ko5qv Před 3 lety +1

    Thanks🎸🎸🎸🎸🎸

  • @SisodiyaTech
    @SisodiyaTech Před 4 lety +2

    Harry bhai how to increase programming skills

    • @shiva_gaming8122
      @shiva_gaming8122 Před 2 lety

      by practicing broo ❤️🔥no other way to increase your programing skills🔥

  • @saczzextras9091
    @saczzextras9091 Před 5 lety +2

    nice class

  • @janhvinarayan1633
    @janhvinarayan1633 Před 5 měsíci +1

    sir yeh 3d aur 4d arrays kese hote hain 🤔

  • @SushilKumar-xg8qk
    @SushilKumar-xg8qk Před 5 lety +4

    Sir aap raspberry pi pe video bnaoge?

  • @rahulpandit8935
    @rahulpandit8935 Před rokem +1

    thank you sir

  • @easycodestep
    @easycodestep Před 4 lety +2

    Hello harry bhai can u please tell me how to clear the previously run terminal code before each new run of the program...

  • @riyavora9704
    @riyavora9704 Před 3 lety +1

    you are doing well,but ye topoic me code understand karna little dificult for beginners.

  • @kabitasinha9214
    @kabitasinha9214 Před 2 lety +2

    Can we print multi dimensional array using pointer?

  • @pradeeppradhan1645
    @pradeeppradhan1645 Před 3 lety +3

    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};

    • @lokeshsingh8833
      @lokeshsingh8833 Před 2 lety

      #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;
      }

    • @codingproxus8573
      @codingproxus8573 Před rokem

      nice

  • @nikhilraj1842
    @nikhilraj1842 Před 5 lety +2

    Ok

  • @rashidaziz2215
    @rashidaziz2215 Před 3 lety +1

    You are legend brother 🔥🔥🔥🔥🔥🔥🔥

  • @sohelshaikh7111
    @sohelshaikh7111 Před 2 lety

    Aap bahut hi achha samjhate ho bhai

  • @Gayatri_shejule
    @Gayatri_shejule Před 6 měsíci

    ❣❣#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.”🥰🥰

  • @AliHussain-sj7cb
    @AliHussain-sj7cb Před 5 lety +4

    well explained but course is going slow

  • @filmytrendz4990
    @filmytrendz4990 Před 2 lety

    16:00 new concept idea 💡

  • @deveshgautam7264
    @deveshgautam7264 Před 3 lety +1

    @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?

    • @barkhagangwani4066
      @barkhagangwani4066 Před 3 lety +1

      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

    • @deepakkumare0164
      @deepakkumare0164 Před 3 lety

      @@barkhagangwani4066 as simple as 🥧

  • @MeenakshiSharma-zo4fc
    @MeenakshiSharma-zo4fc Před 2 lety

    accha lga course sir bht help milli....thank u :D

  • @EverythingTechWithMustafa

    *Virtual hug *

  • @RohanDasRD
    @RohanDasRD Před 5 lety +4

    How come I missed this video

  • @reshmasiddique8790
    @reshmasiddique8790 Před 2 lety +1

    Thank you so much sir🥺

  • @devilfrost9491
    @devilfrost9491 Před 4 lety +3

    Are arguments and parameters same ?

    • @starkendeavours7072
      @starkendeavours7072 Před 3 lety +1

      Yes.

    • @Chess_.64
      @Chess_.64 Před 2 lety

      @@starkendeavours7072 bhai tu pakka daru pi ke aya hai

    • @Chess_.64
      @Chess_.64 Před 2 lety

      No arguments and parameters are different

    • @starkendeavours7072
      @starkendeavours7072 Před 2 lety

      @@Chess_.64 bhai ye interchangeably use hota hai.

    • @Chess_.64
      @Chess_.64 Před 2 lety

      @@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.

  • @mayankmaurya3521
    @mayankmaurya3521 Před 3 lety +1

    Nice

  • @lakshaygupta4985
    @lakshaygupta4985 Před rokem +1

    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??

  • @zeeshanbhai7541
    @zeeshanbhai7541 Před rokem

    what is this error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    for ( int i = 0; i < 4; i++)

  • @deepanshuverma362
    @deepanshuverma362 Před 5 lety +2

    Sir please tell me what software you used for coding

  • @balramnaik370
    @balramnaik370 Před měsícem

    7:20
    Wah