C Programming Tutorial - 59: Array of Pointers

preview_player
Показать описание
In this tutorial we'll check out how we can use an array of pointers to store a list of string values.
Рекомендации по теме
Комментарии
Автор

1.if it's not a variable pointer the array gonna be A[x][y] but when we use pointer we only need 1 bracket like, exp: *A[x] can you help me with the reason why?
2.also, when printing ptr[i], since it's a variabel pointer and we want to print the "value" of where the pointer point to, shouldn't we put "*" in the printf? it becomes like this: *ptr[i] ?? surprisingly the result is the same and i have no idea why :/
3.I'm learning command line and arguments in my class these days and there are these things called argc and *argv[ ], but what i don't understand is why argv need to be a pointer? isn't the argument stored directly to the address/to the pointet itself? it's not like the argument are stored at a different variabel and the argv points to that particular variabel that we didn't declare...right?

tiasm
welcome to shbcf.ru