What will be the output of the following C code? [code] #include <stdio.h> int *m(); void main() { int k = m();

Mỹ An

New member
What will be the output of the following C code?
Code:
    #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
 

Tìm kiếm

Back
Top