Diff between const char pointer and const pointer to char

Поділитися
Вставка
  • Опубліковано 28 вер 2024
  • In this video we will learn what is the difference between const char pointer and pointer to const char.
    This is asked in so many computer science interviews.
    And then as a bonus tip I will explain what is const pointer to const char which is like superset of above two types.
    JOIN ME
    / @cppnuts
    / cppnuts
    #cprogramming #datatype #interview

КОМЕНТАРІ • 18

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

    You made it easy. Great. Thanks

  • @tuti-fruti9983
    @tuti-fruti9983 3 місяці тому

    Thank you

    • @CppNuts
      @CppNuts  16 днів тому

      You're welcome

  • @jumbo999614
    @jumbo999614 4 місяці тому

    Never know that reading backward will make it easy to understand.
    This is better than trying to find the answer from google.
    Great tutorial.
    Do you have tutorial on bitwise shifting thing?
    I'm watching many Arduino tutorial and they use a lot bitwise shifting and comparison in their codes which I find difficult to understand.
    for example ,this is the part of the code I don't understand
    // Converts row and colum to bitmap bit and turn it off/on
    void Plot(int col, int row, bool isOn)
    {
    int zone = col / 8;
    int colBitIndex = x % 8;
    byte colBit = 1

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

    well explained, i would like to suggest that if you could explain/ tell whats the use-cases of these things(not just for what was explained in this one ) if you could add it in as an ending segment in your future video it would be really helpfull.

  • @69k_gold
    @69k_gold 9 місяців тому +1

    I never thought I'd have to use const char * const ptr_name for a read only string but here we are

  • @ChandraShekhar-by3cd
    @ChandraShekhar-by3cd Рік тому +1

    Rupesh, thanks a lot for you continuity, I have been all long with your teaching, a great help you have done to all of us, thanks a lot.
    And just on the side note I wanted to get your suggestion, which mic are you using and do you use any specific software to record the screen, since I was trying to upload some videos as well, could you please guide me to make it. Thanks

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

      Thanks..
      Screen recording: default mac recording
      Mic : Akg d5
      Audio interface : scarlet solo 3rd gen

  • @AnimeKing-m2t
    @AnimeKing-m2t Місяць тому

    There is so much amazing and great tutorial content on UA-cam. When I watch one video I want to subscribe to that channel, then again UA-cam suggests another video and that is also amazing, I want to subscribe that channel as well. This process goes on..and then it becomes impossible to keep an eye on all the subscribed channels because the channel list is huge.. 😄

  • @TheBuilder
    @TheBuilder 6 місяців тому

    that backwards trick is really useful

  • @abdullahsharaawy
    @abdullahsharaawy 4 місяці тому

    Thanks

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

    Man. You are good at this

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

    Just made it simple, thanks 👍

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

    Great👍

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

    make a video that explains volatile const * char = &i;
    PS: This will help for embedded engineer interview questions.