pointers in c language
Answers
Answered by
2
Answer:
HOPE THIS ANSWER HELPS YOU....
Attachments:
Answered by
1
Pointer is a variable which hold the address of another variable.
The general syntax of declaring pointer variables can be given as below:
data_type *ptr_name;
Here, data_type is the data type of the value that the pointer will point to.
For example,
int *pnum;
char *pch;
float *pfnum;
In each of the aforegiven statements, a pointer variable is declared to point to a variable of the specified data type. Although all these pointers, pnum, pch and pfnum point to different data types, the will occupy same amount of space in memory.
Similar questions