0
wat is use of array and pointer
5 Réponses
+ 2
array is a derived data type used to store data on the memory
and pointer is basically a derived data type used to store addressed ...or simply points towards a block of data in memory
0
by using array u can store data of same data type
and by using pointers u can stores the address of another variable instead of storing it's value
0
pointer point to memory and array ar space of memory together and you can do an array of pointer like this int *p[4];
0
In array we can store many elements under one name, it provide easy working if there are so many numbers
if there are many numbers then it taje many variables and we have to input and print that variable , which is very tipicle
so we use the aaray
pointer is a variable which stores the address of another variable
it take only two bytes in memory
and it is faster than any other variable
0
array is used as a more efficent data cobtainer for a large amount of data. while pointers are used to point to a specific file in your hard drive