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