The output of the code below is int *m() { int *p = 5; return p; } void main() { int *k = m(); printf("%d", k); }

Question:
The output of the code below is

    int *m()
    {
        int *p = 5;
        return p;
    }
    void main()
    {
        int *k = m();
        printf("%d", k);
    }

1.1

2.Junk value

3.0

4.5

Posted Date:-2022-03-20 12:18:23


More MCQS Questions and answers

Search
Olete Team
Online Exam Test Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Test website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!