Diff between const char pointer and const pointer to char

  Рет қаралды 5,841

CppNuts

CppNuts

Жыл бұрын

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
@binoypilakkat7830
@binoypilakkat7830 3 ай бұрын
Man. You are good at this
@berwick82
@berwick82 Жыл бұрын
You made it easy. Great. Thanks
@TheBuilder
@TheBuilder 5 ай бұрын
that backwards trick is really useful
@GeniusEngines
@GeniusEngines Жыл бұрын
Just made it simple, thanks 👍
@CYB3r_D3m0n
@CYB3r_D3m0n 10 ай бұрын
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 ай бұрын
Sure…
@tuti-fruti9983
@tuti-fruti9983 Ай бұрын
Thank you
@abdullahsharaawy
@abdullahsharaawy 2 ай бұрын
Thanks
@ergingokkaya8323
@ergingokkaya8323 Жыл бұрын
Great👍
@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
@69k_gold
@69k_gold 7 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
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.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 293 М.
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 89 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 36 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 5 МЛН
The What, How, and Why of Void Pointers in C and C++?
13:12
Jacob Sorber
Рет қаралды 52 М.
A const int is not a constant.
9:16
Jacob Sorber
Рет қаралды 67 М.
Static Data Member And Static Member Function In C++
17:19
CppNuts
Рет қаралды 51 М.
unique_ptr: C++'s simplest smart pointer
11:54
mCoding
Рет қаралды 41 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,4 МЛН
C++ Pointers - Finally Understand Pointers
15:56
Caleb Curry
Рет қаралды 209 М.
String In Char Array VS. Pointer To String Literal | C Programming Tutorial
9:58
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 144 М.
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 89 МЛН