Sail E0 Webinar
Question
The output of the code below is    int *m();    void main()    {        int *k = m();        printf("hello ");        printf("%d", k[0]);    }    int *m()    {        int a[2] = {5, 8};        return a;    }
Options:
A .  hello 5 8
B .  hello 5
C .  hello followed by garbage value
D .  Compilation error
Answer: Option C


None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers