C Programming :: Arrays - Discussion
Home > C Programming > Arrays > MCQs Questions Discussion
28 / 55
What is the output of the following 'C' program ?
#include <stdio.h>
#define MAX 3
int main()
{
int low[MAX];
int index;
int *high[3];
for(index = 0; index < MAX; index++)
high[index] = low + index;
for(index = 0; index < MAX; index++)
printf("%p ",high[index]);
return 0;
}
// when base address of low is 100
#include <stdio.h>
#define MAX 3
int main()
{
int low[MAX];
int index;
int *high[3];
for(index = 0; index < MAX; index++)
high[index] = low + index;
for(index = 0; index < MAX; index++)
printf("%p ",high[index]);
return 0;
}
// when base address of low is 100
A100 100 100
BCompilation Error
C100 104 108
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!