C programming Bangla Tutorial 5.227 : Pointer | swapping two numbers using pointer and function

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 26

  • @sinjinidas07
    @sinjinidas07 6 років тому +3

    Thank you! your explanations are quite vivid and clear. Kindly try to mention at least the main headings in English. Most of the program headings are in English but some weren't. However, overall a great place to learn coz I love your mannerisms while explaining and making complex programs simple to apprehend.

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

    Sir onek video te like cmnt korte mon thake na ,video dekhi r shate shate code kore feli tay amon ta hoi ...apnar dara onek kisu Allah shikhaitase duah kori apni valo thaken r valo valo tutorial amader k den

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

    This tutorial is very nice and beautiful..

  • @MehediHa-ro3qm
    @MehediHa-ro3qm 5 років тому +4

    vaiya apni je fuction ta use koresen seita to void silu tahole value gulo main funtion e aslo ki kore

  • @abdullahalmasum4826
    @abdullahalmasum4826 6 років тому +1

    excellent tutorial...... thanks brother

  • @MD.JayedAlam
    @MD.JayedAlam 10 місяців тому +1

    /*
    C program to swap two number using call by reference */
    #include
    void swapping(int *x, int *y);
    int main()
    {
    int x, y;
    printf("Enter two numbers: ");
    scanf("%d %d", &x, &y);
    printf("before swapping of x = %d
    ", x);
    printf("before swapping of y = %d
    ", y);
    swapping(&x, &y);
    return 0;
    }
    void swapping(int *x, int *y)
    {
    int *p1,*p2;
    p1=&x;
    p2=&y;
    int temp;
    temp = *p1;
    *p1= *p2;
    *p2= temp;
    printf("after swapping of x = %d
    ", *x);
    printf("after swapping of y = %d
    ", *y);
    }

  • @ashrafulfuad2967
    @ashrafulfuad2967 6 років тому +2

    Thank you this video is really helpful

    • @anisul-islam
      @anisul-islam  6 років тому +1

      Thanks for your comment :) Help others by sharing my videos :)

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

    can i have a ques answer
    we know the * sign define that it mean in a pointer it will store the value of the variable
    but in user defined function we returned the address of the variable
    how it is printing the value

  • @abdullahalmasum4826
    @abdullahalmasum4826 6 років тому +2

    vaia malloc, calloc and realloc and free niye tutorial dile upokrito hotam....

  • @najmulislam6518
    @najmulislam6518 11 місяців тому

    Thanks vai❤

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

    Great Explain ❤️

  • @A_D_N_01
    @A_D_N_01 8 місяців тому

    Sir, plz Pass by value, pass by reference ta dekhaiyen. Using pointer

  • @ariftonoy2046
    @ariftonoy2046 5 років тому +3

    vaiya apni je fuction ta use koresen seita to void silo taile value gula main function e aslo kmne?

    • @antareephasan7536
      @antareephasan7536 4 роки тому +5

      cause pointers work with memory address so when you swapped the value of &x(memory address of x ) and &y it changed the value of those memory addresses so no matter from where you change it and where you print it from, the value for the specific memory will be same.

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

    thanks a lot

  • @ayanavabose128
    @ayanavabose128 6 років тому +2

    Thanks

  • @B__MdEktiarHossen
    @B__MdEktiarHossen 6 років тому +1

    Thank you

  • @most.ferjanaboby5770
    @most.ferjanaboby5770 5 років тому

    Thank you via

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

    function tah main er pore declare krle hbe na?

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

    Thank You sir

  • @tofayelhossain1404
    @tofayelhossain1404 6 років тому

    tnq

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

    User input thakle shey khetre ki korbo?

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

    "permutation of a string using pointer " please give me a solution of this problem..

  • @TASumi-cx1nc
    @TASumi-cx1nc Рік тому

    Ami run korle asena folafol

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

    Thank you