Job Recruitment Website - Property management company - What is a pointer in C language?

What is a pointer in C language?

As we all know, arrays in C language refer to a kind of types, which are divided into int type arrays, double type arrays, char arrays and so on. Similarly, the concept of a pointer also refers to a class.

Data type, int pointer type, double pointer type, char pointer type and so on.

Usually we use int type to store some integer data, such as int num = 97, and we also use char to store characters: char ch = 'a'.

We must also know that after any program data is loaded into memory, there are their addresses in memory, that is, pointers. In order to store the address of data in memory, we need pointer variables.

So pointer is the address of program data in memory, and pointer variable is the variable used to store these addresses.