Use of Pointer in Function Context Bubble Sort

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

КОМЕНТАРІ • 11

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

    At 9:30, the value in *x is 1000 and for *y is 1002, which are pointers to x[j] and x[j+1], they how come *x is getting the value 50 and *y is getting value 2. Its a bit confusing.....as x[j] and x[j+1] are passing their addresses not their values.... isn't the address getting changed...? Any solution anyone....???

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

      because int * x means that the value at address x is integer and not the address is integer

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

      @@ajayshankar7298 thts wht int x means anyhow ,whts the difference then?

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

      @@3325631273 but here they are trying to swap the values using there respective address.
      Its just another method to swap. There is no reason to argue for that . The video is just teaching how we can use the address also to swap the values. Hope you are satisfied with the answer.

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

    8:30

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

    Thank you sir

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

    Boooooooooooooooom

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

    Nice sir

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

    Thanks

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

    booring clases

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

    not good