Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Can the group name be a pointer variable?

Shulou Source: shulou.com Published: 2022-06-03 03:54:07 09月13日 Update

What this article shares with you is about whether the group name can be used as a pointer variable. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article. Let's take a look at it.

The group name cannot be treated as a pointer variable. An array name is an address, which in a sense is equivalent to a pointer rather than a pointer variable; a pointer variable can point not only to the first address of an array, but also to others, for example, the first address of the structure, the entry address of the function.

The group name cannot be treated as a pointer variable.

Pointer variables can point not only to the first address of an array, but also to others.

For example, the first address of the structure, the entry address of the function, and so on. Or you can point to an element in the array.

An array name is an address, which in a sense is equivalent to a pointer. Not pointer variables.

Pointer variable

Int * pendant 0

P is a pointer variable.

The pointer variable can be an array name. The array name is a pointer. The range of pointer variables is large

Define a

Int * pound0X p = (int *) malloc (n*sizeof (int)); / / what you are using here is the dynamic allocation of memory that you will learn.

You can define an array of dynamic sizes

Then you can assign a value.

Like

For (iSuppli)

Tags: Pointers variables arrays addresses points to that is not only entry function dynamic meaning more for example knowledge equivalence article structure utility and then elements. Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Docker NVidia Xiaomi vpn