Pointers

Gapfill exercise

  
Enter your answers in the gaps. When you have entered all the answers, click on the "Check" button.
What is a pointer?
The pointer in C language is a variable which the address of another . This can be of type int, char, array, , or any other pointer. The size of the depends on the . However, in 32-bit architecture the size of a pointer is byte.

How to declare a pointer?
The pointer in c language can be using * (asterisk symbol). It is also known as pointer used to a pointer.
int *a;//pointer to int
char *c;// to char

What are the Advantages of pointer?
1) Pointer the code and improves the performance, it is used to strings, trees, etc. and used with arrays, structures, and .
2) We can return multiple from a function using the pointer.
3) It makes you able to access any memory in the computer's .

What is Address of (&) operator?
The of operator '&' the address of a . But, we need to use %u to the address of a .

What is NULL pointer?
A that is not assigned any but is known as the NULL pointer. If you don't have any to be in the pointer at the time of , you can NULL . It will provide a better approach.

How to read the pointer: int (*p)[10].
To read the , we must see that () and [] have the equal . Therefore, their must be considered here. The is left to right, so the priority goes to ().
Inside the (), operator * and pointer name (identifier) p have the precedence. Therefore, their associativity must be considered here which is right to left, so the goes to p, and the second goes to *.