Call by Value & Call By Reference In C: C Tutorial In Hindi #31

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 746

  • @rajivdwivedi6353
    @rajivdwivedi6353 4 роки тому +358

    Harry while explaining Rocket Science: Isme koi rocket science nahin hai!

  • @ravivarmaravivarma2731
    @ravivarmaravivarma2731 4 роки тому +22

    Kya baat hai bro itne acche se explain karte ho aap ekdam top notch

  • @hanumanaramsuthar
    @hanumanaramsuthar 2 роки тому +43

    Hi harry, I am 3 years late to find you on youtube. I am preparing for competitive exams. Your teaching language is straightforward I can understand every word in your videos. anyway, today I accepted you as my programming teacher.

  • @legendarychest1630
    @legendarychest1630 5 років тому +182

    /*Author: Md Shoaib
    Purpose: Quiz(Given two numbers a and b, add them then subtract them to a and b using call by reference.)
    Date: 09/07/2019 */
    #include
    //fuction(Call by reference) for add or subtract
    void addSub(int *a1, int *b1)
    {
    int temp;
    temp = *a1;
    *a1 = *a1 + *b1;
    *b1 = temp - *b1;
    return;
    }
    int main()
    {
    //variable declaration
    int a = 8, b = 6;
    //print to user
    printf("Before running the function, the value of a = %d and value of b = %d
    ", a, b);
    //function call for change the values
    addSub(&a, &b);
    //after using function print to user
    printf("After running the function, the value of a = %d and value of b = %d
    ", a, b);
    return 0;
    }

    • @biswajitsamant6588
      @biswajitsamant6588 3 роки тому +6

      bhai tum to heavy coder nikle 😂😂😂😉😉😉😉😉😉😉

    • @ftn1541
      @ftn1541 3 роки тому +1

      niceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

    • @alkalinelife6110
      @alkalinelife6110 3 роки тому +3

      bhai ek number code likha h mene VS code me run kiya , or yeh code run bhi hua

    • @bsk3800
      @bsk3800 3 роки тому +1

      @@alkalinelife6110 ✌🏾

    • @dikshantprajapat105
      @dikshantprajapat105 3 роки тому +1

      👍👍👍👍

  • @loveshkumrawat
    @loveshkumrawat 5 років тому +10

    Harry bro ans. of your challenge,
    I am late but not wrong
    #include
    int change(int *a,int *b)
    {
    *a=*a+*b,*b=*a-*b*2;
    }
    int main()
    {int x=10,y=7;
    printf("two values %d %d
    ",x,y);
    change(&x,&y);
    printf("%d %d",x,y);
    }

    • @Devwork-dz3er
      @Devwork-dz3er 3 місяці тому +3

      Actually you are wrong you are changing the value of a before b so when you perform b=b-a it will minus the updated value of a not previous value of a
      edit(to solve this you need to store a's value in temp variable and then you have to perform b=b-temp. Hope you got this)

    • @sakalagamingyt3563
      @sakalagamingyt3563 Місяць тому

      Exactly​@@Devwork-dz3er

  • @bullishtrender
    @bullishtrender Рік тому +2

    Harry bhai you are awesome...
    #include
    int sum(int *a , int *b)
    {
    *a = 67+55;
    *b = 67-55;
    }
    int main()
    {
    int a , b;
    a = 67;
    b = 55;
    printf("The value of a is %d
    " , a);
    printf("And the value of b is %d
    " , b);
    sum(&a , &b);
    printf("Now the value of a is %d
    " , a);
    printf("And The value of b is %d" , b);
    return 0;
    }

  • @sDa_E_23
    @sDa_E_23 2 роки тому +15

    //CALL BY REFERENCE(Quick quiz)
    #include
    int cbr(int *x, int *y){
    *x= *x+ *y;
    *y= *x- *y- *y;
    }
    int main()
    {
    int a=4, b=3;
    printf("The values of a and b are %d and %d respectively
    ", a, b);
    cbr(&a, &b);
    printf("The values of a and b are %d and %d respectively", a, b);
    return 0;
    }

    • @physicsboy5762
      @physicsboy5762 2 роки тому +3

      //CALL BY REFERENCE(Quick quiz)
      #include
      int cbr(int *x, int *y){
      int temp = *x;
      *x= *x+ *y;
      *y= temp- *y;
      }
      You can also do this

    • @jimmoriarty5993
      @jimmoriarty5993 Рік тому +1

      Why do you subtracted y 2 times???😮

  • @CoralAbhi
    @CoralAbhi 4 роки тому +2

    Accepted sir Abhi tkk saare accept or done karta hua aa rha hu 🥰You are Awesome..😍

  • @mahinpatel8024
    @mahinpatel8024 3 роки тому +5

    Your are my favourite teacher,
    and my inspiration too.

  • @gopalanand1527
    @gopalanand1527 4 роки тому +27

    Sir your teaching style is awesome.
    All I want to say is I am very lucky to find this channel.
    Sir, if possible , can you make playlist on competitive coding, I will be very thankful to you

  • @adinathrangnekar3064
    @adinathrangnekar3064 2 роки тому +1

    Bro tumare jessa koi nahi!!!YOU ARE THE BEST!!!!

  • @user-gi8lt3tc8n
    @user-gi8lt3tc8n 4 роки тому +5

    Thanks sir.. Belkul asan tareke se ap samjate hai

  • @Gaurav_chandnani
    @Gaurav_chandnani 2 роки тому +2

    You are such a amazing teacher......lot of love and blessings from all cs students

  • @popartist_alok
    @popartist_alok 2 роки тому +3

    Quiz(Given two numbers a and b, add them then subtract them to a and b using call by reference.)
    #include
    void ADDSUB(int *a,int *b)
    {
    int temp;
    temp = *a;
    *a = *a + *b;
    *b = temp - *b;
    return ;
    }
    int main ()
    {
    int a=4,b=3;
    printf("tha value of a is %d and the value of b is %d
    ",a,b);
    ADDSUB(&a,&b);
    printf("now thw value of a is %d and the value of b is %d",a,b);
    return 0;
    }

  • @merajaym2148
    @merajaym2148 3 роки тому +15

    Hello Mr. Harry Sir.. I am impressed after watching 31 C programming Tutorial... Your skills are very impressive.... Thank You Sir.....❤️❤️

  • @gordon_x47
    @gordon_x47 2 роки тому +17

    #include
    int operation(int* x, int* y){
    int c;// declaring a local variable.
    c= *x + *y; // adding the value of pointers and assigning them into c.
    int d; // declaring a local variable.
    d = *x - *y; // subtracting the value of pointers and assigning them into d.
    *x = c; // assigning the value of c into pointer x.
    *y = d; // assigning the value of d into pointer y.
    }
    int main()
    {
    int a=4, b=3;
    printf("The values of a and b before calling the function are: %d and %d
    ", a, b);
    operation(&a, &b);
    printf("The values of a and b after using the operation function are: %d and %d
    ", a, b);
    return 0;
    }
    //Love you Harry Bhai.

    • @rockygaming3663
      @rockygaming3663 Рік тому +1

      //Bro can u explain what does return 0 indicate
      //if it doesn't return anything what's the purpose of writing it??;

    • @gordon_x47
      @gordon_x47 Рік тому +1

      @@rockygaming3663 return 0 means program has successfully executed. Because a function has to return a value if it doesn't returns then it is interpreted that the program is incomplete so we write return 0 to return a value to the program.😊✌️ Hope you get it and good luck on your learning journey, I learned from this course now I'm studying java from Harry Sir.👍

  • @dikshantsharma2096
    @dikshantsharma2096 4 роки тому +4

    @codewithharry your way of telling and understanding C language is very good and nice.
    thanks for videos.

  • @narayan_prajapati2028
    @narayan_prajapati2028 4 роки тому +6

    Ek no sirrr. Challenge accepted

  • @mohitsolanki9544
    @mohitsolanki9544 3 роки тому +3

    Thankyou sir for providing such a great knowledge ..... solved all problems till lec 31.. all challange accepted ...lets move to another lec and solve all problems.. Thank you sir

  • @shrikrishnaumbare
    @shrikrishnaumbare 3 роки тому +3

    I can say surely no one can teach as much best provramming as harry dude he is like bro and what a anolgy he gives amazing yaar aasu aagaye aasu 😒😒and also one thing for c laguage may be this is the best playlist ever

  • @adityarajsingh842
    @adityarajsingh842 2 роки тому +13

    //Given two no's, add them and subtract them and reassign them using call by reference approach
    #include
    int operations( int *x, int *y)
    {
    int c,d;
    c= *x + *y;
    d= *x - *y;
    *x=c;
    *y=d;
    return 0;
    }
    int main()
    {
    int a, b;
    printf("Enter the two numbers:

    ");
    scanf("%d%d",&a,&b);
    printf("You entered %d and %d

    ", a, b);
    operations(&a,&b);
    printf("After doing required operations using call by reference,the numbers are: %d and %d\t",a,b);
    printf("

    ");
    return 0;
    }

  • @yashmeenkhan3638
    @yashmeenkhan3638 3 роки тому +1

    Sir app bhot acha smjhate ho apki vjeh se mujhe 5 % to smjh aa gya

  • @omgaming9573
    @omgaming9573 2 роки тому +2

    This course is perfect harry bhai ❣❣

  • @jazibqureshi4821
    @jazibqureshi4821 3 роки тому +2

    Harry bhai it is very easy.
    Btw challenge accepted.

  • @AnkitSingh-mh7ee
    @AnkitSingh-mh7ee 2 роки тому +1

    Herry bhai your way of explaining the actual perameter and formal perameter is really superb .

  • @noomanrazakhan6373
    @noomanrazakhan6373 4 роки тому +2

    Yes bhaiya smjh m aya. N challenge accepted

  • @akshitsangwan_
    @akshitsangwan_ 3 роки тому +4

    Hats off to u Harry bhaiya for your immense efforts!!

  • @wizard.01
    @wizard.01 Рік тому +1

    No doubt,it's the best video on this topic.The examples which you gave made it even more simpler and easier to understand. Thank you!

  • @saurabhwagh3417
    @saurabhwagh3417 2 роки тому

    Harry bhaiya thanks a lot course bohat bohat bohat accha hai sab aaram se samaj aa jata hai teaching skills op

  • @atifmalik8012
    @atifmalik8012 9 місяців тому

    Thanks harry bhai mere college ke assignment me tha ye question
    #include
    int interchange(int *x,int*y){
    int z;
    z = *x; //stores num1 value in another variable
    *x = *y; //stores num2 value in num1
    *y = z; // stores num1 value in num2
    }
    int main(){
    int a,b;
    printf("Enter the value of num1 :
    ");
    scanf("%d",&a);
    printf("Enter the value of num2 :
    ");
    scanf("%d",&b);
    printf("num1 = %d
    num2 = %d
    ",a,b);
    interchange(&a,&b);
    printf("After interchanging
    ");
    printf("num1 = %d
    num2 = %d
    ",a,b);
    }

  • @subhankarsahoo1316
    @subhankarsahoo1316 2 роки тому +1

    Harry bhai thank you for your efforts

  • @atifmalik8012
    @atifmalik8012 9 місяців тому

    Call by reference example in this i changed actual value of x and y by using pointer
    #include
    float func1(float *a,float *b){
    *a = 1.6;
    *b = 1.0;
    }
    int main(){
    float x = 12.0,y=6.0;
    printf(" x before calling %f
    y before calling %f
    ",x,y);
    float d = func1(&x,&y);
    printf(" x after calling %f
    y after calling %f
    ",x,y);
    }

  • @notimepass7754
    @notimepass7754 Рік тому

    wah sir what's explanation, maja aa gaya, i am watching this video before one hour of my c language exam BCA(S.S JAIN SUBODH PG COLLEGE JAIPUR)
    THANK YOU SIR, LOVE YOU 🤍🤍

  • @anirudhparasaran2890
    @anirudhparasaran2890 2 роки тому

    26:09
    quiz solution:
    #include
    void func(int *a,int * b)
    {
    int temp;
    temp=*a;
    *a=*a+*b;
    *b=temp-*b;
    }
    int main()
    {
    int a,b;
    printf("enter a and b:");
    scanf("%d %d",&a,&b);
    printf("The values of a and b are %d and %d !
    ",a,b);
    func(&a,&b);
    printf("New a and b are %d and %d !
    ",a,b);
    }

  • @tejalmohod9389
    @tejalmohod9389 3 роки тому +3

    void addsub(int* x, int* y)
    {
    int temp1=*x+*y;
    int temp2=*x-*y;
    printf("The value of a is %d
    ",temp1);
    printf("The valuebif b is %d ",temp2);
    }

    int main()
    {
    int a=4;
    int b=3;
    addsub(&a, &b);
    return 0;
    }

  • @subhankarkanrar9494
    @subhankarkanrar9494 Рік тому

    Challenge accepted Harry Bhai.
    //QUICK QUIZ:Given two numbers a and b, add them then subtract them and assign them to a and b using call by
    //reference.
    #include
    void call_by_reference(int*x,int*y)
    {
    *x=*x+*y;
    *y=(*x-*y)-*y;
    }
    int main()
    {
    int a=4,b=3;
    printf("The present value of a and b is %d,%d
    ",a,b);
    call_by_reference(&a,&b);
    printf("After running the function,the updated value of a and b is %d,%d
    ",a,b);
    return 0;
    }

  • @rishikumar-uf7tu
    @rishikumar-uf7tu 6 місяців тому +1

    25:31 very important quiz

  • @C_o_d_e_Help
    @C_o_d_e_Help Рік тому

    Call by value : copy of value in different variable; then they operate on diffrent values
    Call by reference : address of an variable copied & both function have same address so they can change the original value

  • @anujjadhav2175
    @anujjadhav2175 4 роки тому +1

    I Love The Way you EXPLAIN!!!!!

  • @CYBORGx0
    @CYBORGx0 2 роки тому +1

    Pointers made simple 😃🔥🔥
    Thanks harry bhau

  • @sagnikroy5001
    @sagnikroy5001 4 роки тому +31

    #include
    /* Quick Quiz:
    Given two numbers a and b, add them then subtract them and assign them to a and b using call by reference.
    a = 4
    b = 3
    after running the function, the values of a and b should be:
    a = 7
    b = 1
    */
    void callbyref(int *x, int *y)
    {
    *x=*x+*y;
    *y=(*x-*y)-*y;
    }
    int main()
    {
    int a,b;
    printf("Enter value of a and b: ");
    scanf("%d%d",&a,&b);
    callbyref(&a,&b);
    printf("The values of a=%d and b=%d",a,b);
    return 0;
    }

  • @amrendrashekhar7523
    @amrendrashekhar7523 4 роки тому +2

    all clear and challenge accepted

  • @arpitkushwah3408
    @arpitkushwah3408 Рік тому

    #include
    int main() {
    printf("hello harry,nice explanation");
    return 0;
    }

  • @MeeraTech_Talks
    @MeeraTech_Talks 3 роки тому

    Harry bhai aap ko bhut bhut bhut thanks....muje c language aalb smj aa rahi heyy

  • @Riya-js7im
    @Riya-js7im 6 місяців тому +1

    Thank you so much sir😊

  • @shinchan-sp5ii
    @shinchan-sp5ii Рік тому +1

    Bhaiya you are the best!!!😁

  • @barunjena6171
    @barunjena6171 4 роки тому +8

    Sir I completed your challenge for printing triangle and reversed triangle now. It was awesome how I was able to find the solution eventually by making mistakes and then learning from my mistakes. It was trial and error again and again and after three hours I made it! I also found it interesting how many times my intuition works faster than my brain reaches the logic behind the intuition. It helps a lot in programming.

    • @gayatriyadav3766
      @gayatriyadav3766 3 роки тому

      I have written the code and posted it in the previous video, please check and correct me if I am wrong anywhere

    • @barunjena6171
      @barunjena6171 3 роки тому

      @@gayatriyadav3766 I can't find your code in the previous video, paste it here.

    • @ravineemkarolijoshinainital
      @ravineemkarolijoshinainital 3 роки тому

      It's probably late. Not to brag but my code was done in around 5 mins.
      I would think that some concepts were not clear at the time.

    • @namansharma8515
      @namansharma8515 Рік тому

      @@ravineemkarolijoshinainital well you might have experience in some other kind of logical things but for a beginner to solve without looking anywhere is a good thing because in the try and error we come across different errors and learn something new

    • @ravineemkarolijoshinainital
      @ravineemkarolijoshinainital Рік тому

      @@namansharma8515 looking back at the comment after a year, ironically I was probably bragging about it.
      I was just a dumb kid I guess.

  • @tapansonak1431
    @tapansonak1431 3 роки тому +1

    Thanks a lot bhaiya, your teaching skills are off the charts.

  • @harshitgupta355
    @harshitgupta355 4 роки тому +7

    Nice drawing sir ❤️❤️❤️

  • @deeptailor8612
    @deeptailor8612 5 місяців тому

    challage accepted !!!!!!!
    #include
    void quiz(int *a, int *b)
    {
    int temp;
    temp = *a;
    *a = *a + *b;
    *b = temp - *b;
    }
    int main()
    {
    int a = 4, b = 3;
    printf("a = %d
    ", a);
    printf("b = %d
    ", b);
    quiz(&a, &b);
    printf("Now the value of a = %d
    ", a);
    printf("Now the value of b = %d
    ", b);
    return 0;
    }

  • @SumitPal-wl2md
    @SumitPal-wl2md 3 роки тому

    Harry bhai best teacher

  • @snace_gaming
    @snace_gaming Рік тому +1

    #include
    int sum(int a, int b);
    int main()
    {
    int a,b;
    a=4;
    b=3;

    printf("the sum is %d
    ", a+b);
    printf("the mines is %d
    ", a-b);
    return 0;
    }
    int sum(int a, int b)
    {
    return a+b;
    }

  • @athuislive4917
    @athuislive4917 Рік тому +1

    #include
    int adder(int *a , int *b){
    // call by refrence means we change the value of the values by taking their adress and modifying them .
    int temp = *a ;
    *a = *a + *b ;
    *b = temp - *b ;
    }
    int main(void) {
    int a =6 ,b = 4;
    printf("The value of a is : %d
    And Value of b is : %d
    " , a ,b);
    adder(&a , &b);
    printf("Changed value of a is : %d
    And Changed Value of b is : %d
    " , a ,b);
    return 0;
    }

  • @SandipBhattacharya
    @SandipBhattacharya Рік тому +3

    Thank you for uploading this excellent video, Harry. Let me briefly add by saying, there are two most popular ways to call functions for parameter passing.
    *Call by Value:* This method copies the value of an actual parameter or argument into the formal parameter of the function. Both actual and formal parameters are stored in different memory locations (in RAM). So, any changes that are made to the formal parameters in the called function are not reflected in the actual parameters in the calling function. Okay? By default, C programming uses call by value to pass parameters.
    *Call by Reference:* In this approach, the address of an actual parameter is copied into the formal parameter. Both actual and formal parameters refer to the same memory location. So, any changes that are made to the formal parameters in the called function are actually reflected in the actual parameters of the caller function. In C, we can use pointers to get the effect of call by reference or pass by reference, whatever you call it.
    Hope it helps!

  • @rajdulari_tadwal4912
    @rajdulari_tadwal4912 3 роки тому

    Thnx it for making it so simple to understand.i couldn't understand it before.

  • @abhiraj3477
    @abhiraj3477 5 років тому +4

    Nice please JavaScript ka course kijiye

  • @dhee01
    @dhee01 4 роки тому

    Bhai next level explanation tha..Mazaa agaya.

  • @AnaghAngira
    @AnaghAngira 4 роки тому

    harry bhai app bahut aacha padhate ho..
    and keep it up mere bhai

  • @binodbastola8255
    @binodbastola8255 Рік тому

    // Wap a program ,given two numbers a and b.Add them then subtract them and assign them to a nd b by using call by reference.
    #include
    void operation(int* x,int* y)
    {
    int sum,difference;
    sum= *x+*y;
    difference= *x-*y;
    *x=sum;
    *y=difference;
    }
    int main(int argc, char const *argv[])
    {
    int a=4 ,b=3;
    operation(&a,&b);
    printf("The value of a is %d and the value of b is %d.",a,b);


    return 0;
    }

  • @parthpatwa9133
    @parthpatwa9133 3 роки тому

    Best c programming 👍👍👍

  • @aradhyapandey1489
    @aradhyapandey1489 3 роки тому

    accepted!! samajh aagya

  • @ronycb7168
    @ronycb7168 3 місяці тому +1

    Challenge accepted now I understood this but I think it would have been better if formal and actual parameters was taught in a separate video... P.S. will write a solution to this someday soon...

  • @deepeshrathod2044
    @deepeshrathod2044 4 роки тому +4

    challange accepted
    #include
    void func(int *a,int *b){
    int temp1 = *a+*b;
    int temp2 = *a-*b;
    printf("The values after execution are : %d, %d
    ",temp1 ,temp2);
    }
    int main(){
    int a,b;
    printf("Enter first no.
    ");
    scanf("%d",&a);
    printf("Enter second no.
    ");
    scanf("%d",&b);
    printf("The values of before execution are : %d, %d
    ", a, b);
    func(&a,&b);
    }

    • @rajpatel-yd3ow
      @rajpatel-yd3ow 3 роки тому

      Good

    • @022jayanath3
      @022jayanath3 2 роки тому

      its absolutely wrong bro ..if you print the values of a and b it should be 7 and 1,,,whereas u are printing temp1 and temp2....the actual arguments a,b should be changed ,,,

  • @SaadKhan-sg4wh
    @SaadKhan-sg4wh 2 роки тому +6

    Thank you so much man! I had a hard time trying to understand this in class but you made it very clear now ❤

  • @atifmalik8012
    @atifmalik8012 9 місяців тому

    Call by value
    #include
    int multiply(float a,float b){
    return a*b;
    }
    int main() {
    float x =5,y=4.5;
    float m = multiply(x,y);
    printf("%f",m);
    }

  • @shivamshrivastava6530
    @shivamshrivastava6530 Рік тому

    Harry bhai ki drawing is op ✨✨

  • @ROSHAN-bf5bj
    @ROSHAN-bf5bj 3 роки тому +1

    great explanation thank you

  • @royfamily9273
    @royfamily9273 2 роки тому

    Thanks Harry Bhaiya

  • @catsbestbattles6194
    @catsbestbattles6194 2 роки тому

    Wow sir aap ne acchha example Diya paper Wala

  • @subsavage5722
    @subsavage5722 3 роки тому

    thnku harry bhai aapne kya samjhaya hai

  • @RaghurajSinghvlogMViews
    @RaghurajSinghvlogMViews Рік тому +1

    Great sir 🎉🎉🎉🎉❤❤❤❤

  • @anupkumarsahu1166
    @anupkumarsahu1166 3 роки тому

    thank you so much sir ki aapne courses ko dale ho due this i feel very helpful and confident also so thank you so much for doing this.

  • @toufikumar7169
    @toufikumar7169 2 роки тому +1

    #include
    void sow(int *a ,int *b){
    int temp;
    temp = *a+*b;
    *b=*a-*b;
    *a=temp;
    }
    int main(int argc, char const *argv[])
    {
    int a = 4 ,b= 3;
    printf("%d and %d
    ",a,b);
    sow(&a,&b);
    printf("%d and Secend %d",a,b);
    return 0;
    }
    OutPut:
    4 and 3
    7 and Secend 1.
    ans is :
    a= 7 and b= 1.

  • @aakash9025
    @aakash9025 5 років тому +1

    Marvelous One Bro 👌

  • @sumitjhaldiyal9192
    @sumitjhaldiyal9192 4 роки тому

    Bhai app awesome ho.. Ek baar apsee milna chahunga......

  • @atulsoam472
    @atulsoam472 3 роки тому +1

    CHALLEGE ACCEPTED SIR 👍JI

  • @satyamshahgod-kar
    @satyamshahgod-kar 2 роки тому +4

    Quiz Taking two integers after initializing them. And, after adding and subtracting the value in such a way, its value is changed into 7 and 1 by using call by reference.

  • @harshkanani6605
    @harshkanani6605 3 роки тому

    Thank you so much Harry sir for amazing explanation
    Love you sir

  • @gandikotevinayakavinnu7331
    @gandikotevinayakavinnu7331 2 роки тому

    outstanding class sir

  • @gamingwithbroly9289
    @gamingwithbroly9289 Рік тому

    challenge accepted and here is my solution to the quick quiz
    #include
    int func(int*a,int*b){
    int temp;
    temp = *a;
    *a = *a+*b;
    *b = temp-*b;
    }
    int main()
    {
    int a =4 , b =3;
    printf("The value of a and b are %d %d
    " ,a,b);
    func(&a,&b);
    printf("The value of a and b are now %d %d
    ",a,b);
    return 0;
    }

  • @anish_rawat
    @anish_rawat Рік тому

    bhai mene Quiz solve kr diya haj tq janu❤️

  • @RajeshMudi
    @RajeshMudi 2 роки тому

    Bhaiya bohut ache se samaj mai aah rha hh

  • @adityaraj-lo1is
    @adityaraj-lo1is 3 роки тому

    6:52 kya hi example bhai 😂🔥

  • @AbdKhan2309
    @AbdKhan2309 Рік тому

    I did this code by myself and with your help ofcourse.. Thnakyou Thankyou thankyou
    #include
    int addition(int a, int b)
    {
    return a + b;
    }
    int sub(int x, int y)
    {
    return x - y;
    }
    int main()
    {
    int num;
    int a , b , c;
    int x, y, z;
    while (1)
    {

    printf("ENTER 1 FOR ADDITION AND 2 FOR SUBTRACTION
    ");
    scanf("%d", &num);
    switch (num)
    {
    case 1:
    printf("enter the value of a
    ");
    scanf("%d", &a);
    printf("enter the value of b
    ");
    scanf("%d", &b);
    printf("the value of a is %d and the value of b is %d
    ", a, b);
    c = addition(a, b);
    printf("the sum is %d
    ", c);
    break;
    case 2:
    printf("enter the value of x
    ");
    scanf("%d", &x);
    printf("enter the value of y
    ");
    scanf("%d", &y);
    printf("the value of x and y is %d, %d
    ", x, y);
    z = sub(x, y);
    printf("the subtraction is %d
    ", z);
    break;
    default:
    break;
    }
    }
    return 0;
    }

  • @ronakmaniya2005
    @ronakmaniya2005 4 місяці тому +1

    #include
    using namespace std;
    void calc(int *x, int *y){
    *x = *x + *y;
    *y = *x - *y - *y;
    }
    int main(){
    // cout

  • @himanshuverma5974
    @himanshuverma5974 5 років тому +2

    I lv u bhaiya ❤❤❤

  • @pragyakumari9141
    @pragyakumari9141 4 роки тому +1

    veryyyyyyy gooooodddd lecture !!!!!!!!

  • @AdityaKate_
    @AdityaKate_ 7 місяців тому +1

    Quiz Solution:
    #include
    int add(int* x, int* y)
    {
    return *x + *y;
    }
    int sub(int* d, int* c)
    {
    return *d - *c;
    }
    int main()
    {
    int a=4, b=3;
    printf("%d and %d are two Numbers.
    ", a, b);
    int s = add(&a, &b);
    printf("Addition of Two Numbers is: %d
    ",s);
    int m = sub(&a, &b);
    printf("Subtraction of Two Numbers is: %d
    ",m);
    return 0;
    }

  • @itsfate6535
    @itsfate6535 Рік тому

    void quiz(int* a, int* b){
    int sum = *a + *b;
    int diff = *a - *b;
    *a = sum;
    *b = diff;
    }

  • @vishalkarmakar418
    @vishalkarmakar418 3 роки тому

    thank you bhaiya i love you alot ❤❤❤❤❤❤❤

  • @anuragroy4540
    @anuragroy4540 Рік тому

    challenge excepted......
    #include
    void additionsubtraction function(int* x,int*y);
    {
    int temp=*x;
    *x=*x+*y;
    *y=temp-*y;
    return;
    }
    int main()
    {
    int a=4,int b=3;
    printf(" the value of a is %d and the value of b is %d
    ",a,b);
    additionsubtraction function(&a,&b);
    printf(" the value of a now is %d and the value of b now is %d
    ",a,b);
    return 0;
    }

  • @manpreetsinghcse8263
    @manpreetsinghcse8263 4 роки тому +1

    bakki sbb ko sorho, harry bhai ki danchu example🤣🤣👌🏻

  • @vaibhav_prajapat_7725
    @vaibhav_prajapat_7725 3 роки тому

    learning and enjoying. challenge accepted.

  • @NitinKumar-qk1fi
    @NitinKumar-qk1fi 4 роки тому

    Awesome👏✊👍👏✊👍👏✊👍 bro i got it

  • @deependrakumarrout4172
    @deependrakumarrout4172 5 років тому

    Thanks you so much bhai because of you i am far away from my college c programming once again thank you so much or ye raha program :-
    #include
    int sum(int *num1, int *num2)
    {
    return *num1+*num2;
    }
    int sub(int *num1, int *num2)
    {
    return *num1-*num2;
    }
    int main()
    {
    int a,b;
    printf("Enter a number :");
    scanf("%d",&a);
    printf("Enter another number : ");
    scanf("%d",&b);
    printf("The sum(+) of %d and %d is %d
    ",a,b,sum(&a,&b));
    printf("The sub(-) of %d and %d is %d
    ",a,b,sub(&a,&b));
    return 0;
    }

  • @prathmeshdharmadhikari9831
    @prathmeshdharmadhikari9831 3 роки тому

    Challenged accepted.. 🔥🤝😃

  • @namansharma8515
    @namansharma8515 Рік тому +1

    #include
    void sumdiff(int *x, int *y)
    { int temp;
    temp= *x;
    *x = *x + *y;
    *y = temp - *y;
    }
    int main()
    {
    int a, b;
    printf("Enter the value of a
    ");
    scanf("%d", &a);
    printf("Enter the value of b
    ");
    scanf("%d", &b);
    sumdiff(&a, &b);
    printf("The sum is %d and differnce is %d
    ", a, b);
    return 0;
    }

  • @derek2554
    @derek2554 3 роки тому

    awesome video bhaiya thanks a lot for your help

  • @riteshsingh2705
    @riteshsingh2705 4 роки тому +3

    Bro ek java ka complete course plz

  • @prasaddhend7983
    @prasaddhend7983 4 роки тому +2

    Accepted 💪💪💪💪