Pointers in C / C++ [Full Course]
YouTube transcript, YouTube translate
A quick preview of the first subtitles so you know what the video covers.
the course you are about to watch is about pointers in c the course was developed by the excellent instructors from my code school my code school is one of the earliest software channels on youtube and has inspired many developers and creators in the description i've included a link to an article about the channel's amazing story now let's get to the course pointer is a very fundamental and important concept in programming but a lot of beginner programmers find it difficult to understand pointers so in this lesson we will try to demystify pointers and all you need to know to understand this lesson is how to write a basic c program how to declare a variable and how to do simple arithmetic upon those variables okay so let's get started to understand pointers we first should understand how various data types or various variables are stored in computers memory okay so let us say this figure in the is computers memory and when we talk about computers memory in context of program execution we mostly talk about the random access memory or the ram we often say that my machine has got 2 gb of 2 gigabytes of ram or 4 gigabyte of ram now let's say these segments or partitions that we are showing here in the memory is each one byte of memory now in a typical memory architecture in a typical computer architecture of the memory each byte of the memory has an address so let's say the first byte in this memory which we can assume to be the lowest by deep down here has an address zero and the address keeps on increasing as we go towards the top so we go on like zero one two and let's assume this particular address is two zero one so the next byte would have an address of two zero two and we will go on like two is to use the function size off so if we write something like size of a here in the main method then this will give us the size of the array a in bytes array has five integers and in a typical compiler and i know for sure that in this compiler an integer is stored in four bytes so