Here we do not give array size. So how memory (20 bytes) allocated for arr?Code:int main() { int arr[] = {1, 2, 3, 4, 5}; }
By counting the numbers between comma(,) operators inside the curly braces?
Here we do not give array size. So how memory (20 bytes) allocated for arr?Code:int main() { int arr[] = {1, 2, 3, 4, 5}; }
By counting the numbers between comma(,) operators inside the curly braces?