What will be the output of the following C code?
#include <stdio.h>
int *m();
void main()
{
int k = m();
printf("%d", k);
}
int *m()
{
int a[2] = {5, 8};
return a;
}
#include <stdio.h>
int *m();
void main()
{
int k = m();
printf("%d", k);
}
int *m()
{
int a[2] = {5, 8};
return a;
}A. 5
B. 8
C. Nothing
D. Varies
Answer: Option D

Join The Discussion