C Programming :: Arrays - Discussion
Home > C Programming > Arrays > MCQs Questions Discussion
22 / 55
What will be the output of the program ?
#include<stdio.h>
int DIM(int array[])
{
return sizeof(array)/sizeof(int );
}
void main()
{
int arr[10];
printf("The dimension of the array is %d", DIM(arr));
}
#include<stdio.h>
int DIM(int array[])
{
return sizeof(array)/sizeof(int );
}
void main()
{
int arr[10];
printf("The dimension of the array is %d", DIM(arr));
}
Adimension of the array is 40
Bdimension of the array is 10
Cdimension of the array is 1
DCompilation Error
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!