Diff between const char pointer and const pointer to char

Поделиться
HTML-код
  • Опубликовано: 4 авг 2023
  • 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

Комментарии • 14

  • @CYB3r_D3m0n
    @CYB3r_D3m0n 10 месяцев назад +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.

    • @CppNuts
      @CppNuts  10 месяцев назад +1

      Sure…

  • @binoypilakkat7830
    @binoypilakkat7830 3 месяца назад

    Man. You are good at this

  • @berwick82
    @berwick82 Год назад

    You made it easy. Great. Thanks

  • @69k_gold
    @69k_gold 7 месяцев назад +1

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

  • @TheBuilder
    @TheBuilder 4 месяца назад

    that backwards trick is really useful

  • @GeniusEngines
    @GeniusEngines Год назад

    Just made it simple, thanks 👍

  • @tuti-fruti9983
    @tuti-fruti9983 Месяц назад

    Thank you

  • @abdullahsharaawy
    @abdullahsharaawy 2 месяца назад

    Thanks

  • @jumbo999614
    @jumbo999614 2 месяца назад

    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

  • @ergingokkaya8323
    @ergingokkaya8323 Год назад

    Great👍

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

  • @chayakumarsedutainment4799
    @chayakumarsedutainment4799 10 месяцев назад

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