0   reviews on Udemy

Pointers In C And CPP For Job Interviews By Spotle

This course is ideal for the students to prepare for their job interviews and for the C, CPP programmers
Course from Udemy
 1 students enrolled
 en
Pointers in C and C++
Dynamic memory management in C and C++
Call by reference
Datatypes of pointers
Pointers, arrays and strings
Pointer to a structure in C

C is one of the most powerful programming languages and a must learn for anyone interested in programming. Unlock the full power of C and C++ by learning pointers in C and C++.

Pointers are special variables that are used to store addresses. Let’s say, you have 5 values stored in the memory of your computer. A pointer points to the address of the memory space where a certain value is stored. A variable stores the value of an object. But a pointer points to the address where the value is stored in the memory. For example, in order to point to A, a pointer will point to its memory address 1000.

Now to point to D the pointer will point to its address 1003.

  • Let’s say, we have a variable X. And the value of the variable X is 7.

  • The pointer pointing to X is not 7. The pointer pointing to X is the base address where the value 7 is stored.

It’s like if you are holding a pen for me in your hand, instead of saying I want the pen, I am saying I want whatever you have in your hand. So I am pointing to the hand that is holding the pen. Pointers work something like this.

Let’s see how pointers work in programming. We have talked about the variable X that has value 7. We will now define that. This is how we define X.

int X = 7;

Let’s say, the value of X, i.e. 7 is stored in the memory location 1000. In order to learn about pointers we need to learn about two operators, & and *.

Operator & will give us the address of the variable. & operator is ‘address of’ operator. So,

&X = 1000.

Operator * will give us the content of an address. * operator is ‘content at’ operator. So,

*(&X) = *(1000) = 7.

Pointers In C And CPP For Job Interviews By Spotle
$ 24.99
per course
Also check at

FAQs About "Pointers In C And CPP For Job Interviews By Spotle"

About

Elektev is on a mission to organize educational content on the Internet and make it easily accessible. Elektev provides users with online course details, reviews and prices on courses aggregated from multiple online education providers.
DISCLOSURE: This page may contain affiliate links, meaning when you click the links and make a purchase, we receive a commission.

SOCIAL NETWORK