I played with arrays and memory and found that
int x;
scanf("%d", &x);
int arr[x];
printf("%d", sizeof(arr));
Print the size of the array. How can C know the size of the array at runtime?
I played with arrays and memory and found that
int x;
scanf("%d", &x);
int arr[x];
printf("%d", sizeof(arr));
Print the size of the array. How can C know the size of the array at runtime?