Hello,
i learning to code without any prior experience to it whatsoever. Here is my confusion regarding the function sizeof().
So, when declaring an array, the name of array is just a pointer to its first element. Then, why is the output in the following code is 12 and not 4, which is the actual size of the variable "movie1"?
Code:int main() { char movie1[] = "Hello World"; printf("%d", sizeof(movie1)); return 0; }