Difference between Pointer to an array and Array of pointers in c programming language with example

preview_player
Показать описание
Difference between Array of pointers and Pointer to an array in c programming.
Array of pointers (int *array_of_ptr[5]) - Array of pointers which can store the addresses of 5 variables.
Pointer to an array (int (*ptr_to_array)[5]) - Single pointer which can point to array of 5 pointers.

I have explained basics of array of pointers and pointer to an array with examples in the video.

You will get the complete understanding and difference between Array of pointers and pointer to an array after watching this video.

================ content of this video ================

0:00 intro
0:15 precedence problem
0:55 array of pointers
1:54 pointer to an array
3:10 coding - array of pointers
4:20 coding - pointer to an array
6:25 summery

#bydubebox
#pointers #pointertoarray #arrayofpointers

Рекомендации по теме
Комментарии
Автор

Sir you are so loving men after a long frustration i take the concept oh

sardarzain
Автор

Sir explain defrencing and referencing

bachakhani
Автор

Sir what is the use of array of pointers and pointer arrays?

tysonshaik
visit shbcf.ru