![Pointers in C / C++ [Full Course]](https://i3.ytimg.com/vi/zuegQmMdy8M/maxresdefault.jpg)
Pointers in C / C++ [Full Course]
video description
Date: 2022-03-14
Related videos
Comments and reviews: 10
Tony
char star_pnt is standard, though char_star pnt does more to explain what it is, a char-pointer, the pointer itself is always 16 or 32bit in (system) size.
So why tell the type?, it's if you do math to the pointer, +1 is not the same byte offset for char- and int-, the compiler handles that in the background.
And of course, compiler will mask out just the part in memory when you request a -byte but system is 32bit, using opcodes that are available for that system before it returns it.
reply
char star_pnt is standard, though char_star pnt does more to explain what it is, a char-pointer, the pointer itself is always 16 or 32bit in (system) size.
So why tell the type?, it's if you do math to the pointer, +1 is not the same byte offset for char- and int-, the compiler handles that in the background.
And of course, compiler will mask out just the part in memory when you request a -byte but system is 32bit, using opcodes that are available for that system before it returns it.
reply
Swyamdipta
I am studying computer science in school now. And we have C language in our syllabus now - definitely YouTube has taught me way more than my school teachers. And now I am proceeding to learn the intermediate of C language by learning the concept of pointer. I have already seen the first chapter of this video and have found it quite useful. Thanks to the person who have explained every thing on that chapter in an easy way.-
reply
I am studying computer science in school now. And we have C language in our syllabus now - definitely YouTube has taught me way more than my school teachers. And now I am proceeding to learn the intermediate of C language by learning the concept of pointer. I have already seen the first chapter of this video and have found it quite useful. Thanks to the person who have explained every thing on that chapter in an easy way.-
reply
Mykola
This video goes over pointers better than any book I read. Its crazy how it can take a couple days to read through a book and practice the examples from that text. This video goes over all the minute details in an easy straight forward way and does it all in under 4 hours. Basically a nice crash course on pointers and memory in 4 hours. This is absolutely wonderful. Thank you for the perfect explanation and demonstrations.
reply
This video goes over pointers better than any book I read. Its crazy how it can take a couple days to read through a book and practice the examples from that text. This video goes over all the minute details in an easy straight forward way and does it all in under 4 hours. Basically a nice crash course on pointers and memory in 4 hours. This is absolutely wonderful. Thank you for the perfect explanation and demonstrations.
reply
AuroraClair
Can soneone explain 1:24:35, why isn't it possible to declare a char array of soze 20 first, and then initialize it with -john- as so: char C[20];
C = -john-;
I would like to know hiw the compiler treats string literals, seems like it should work since the size of the array is big enough... Thanks :)
reply
Can soneone explain 1:24:35, why isn't it possible to declare a char array of soze 20 first, and then initialize it with -john- as so: char C[20];
C = -john-;
I would like to know hiw the compiler treats string literals, seems like it should work since the size of the array is big enough... Thanks :)
reply
Florin
1:28:45 - c1 cannot be modified because it's an address (left value) , c2 can be modified because store an address (right value) , but &c2 = c1 is the wrong as c1=c2 (c2 can store an address because it's a pointer but also have an address because it's saved in memory) .
reply
1:28:45 - c1 cannot be modified because it's an address (left value) , c2 can be modified because store an address (right value) , but &c2 = c1 is the wrong as c1=c2 (c2 can store an address because it's a pointer but also have an address because it's saved in memory) .
reply
Tony
Machine code have always allowed indirect address in hardware, like LDA ($40) or MOV -R1,R0
what C does it let you access this, and it keeps track of location, and all struct member offset if you want to use it as entry point for a function.
reply
Machine code have always allowed indirect address in hardware, like LDA ($40) or MOV -R1,R0
what C does it let you access this, and it keeps track of location, and all struct member offset if you want to use it as entry point for a function.
reply
outside
This is the best series on pointer I have found. Its verbatim to my class workbook in regards to the depth of concepts but way easier to understand then looking at written code in a book with terrible explanation. Thank you!
reply
This is the best series on pointer I have found. Its verbatim to my class workbook in regards to the depth of concepts but way easier to understand then looking at written code in a book with terrible explanation. Thank you!
reply
Tony
I don't like when first simple example is useless, as why would you copy A to -P, A is already stored in a location by compiler. most C pointer example use this, and it throws newbies off.
I Hate it.
reply
I don't like when first simple example is useless, as why would you copy A to -P, A is already stored in a location by compiler. most C pointer example use this, and it throws newbies off.
I Hate it.
reply
GayusSchwulius
This course is great, but I still have to grin a little about the fact that pointers in C and C++ are so complicated that they take a nearly 4 hour long course to understand fully :D
reply
This course is great, but I still have to grin a little about the fact that pointers in C and C++ are so complicated that they take a nearly 4 hour long course to understand fully :D
reply
Chethan
The best video on pointers on youtube. Please whoever visits this video do watch it. He has convered everything that we need to know. 100% worth watching whole video without skipping.
reply
The best video on pointers on youtube. Please whoever visits this video do watch it. He has convered everything that we need to know. 100% worth watching whole video without skipping.
reply
Add a review, comment
Other channel videos















