51.
What will be the output of the following C code (run without any command line arguments)?
#include <stdio.h>
int main(int argc, char *argv[])
{
    printf("%s\n", argv[argc]);
    return 0;
}

52.
What will be the output of the following C code?
#include <stdio.h>
void f(int);
void (*foo)(void) = f;
int main(int argc, char *argv[])
{
    foo(10);
    return 0;
}
void f(int i)
{
    printf("%d\n", i);
}

53.
What will be the output of the following C code?
#include <stdio.h>
void m(int p, int q)
{
    int temp = p;
    p = q;
    q = temp;
}
void main()
{
    int a = 6, b = 5;
    m(a, b);
    printf("%d %d\n", a, b);
}

Read More Section(Pointer)

Each Section contains maximum 100 MCQs question on Pointer. To get more questions visit other sections.