Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
int *m()
{
    int *p = 5;
    return p;
}
void main()
{
    int *k = m();
    printf("%d", k);
}

A. 5

B. Junk value

C. 0

D. Error

Answer: Option A


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function