What is the output of the following C program? #include <stdio.h> int main() {…

What is the output of the following C program?

#include <stdio.h>
int main()
{
    typedef int *i;
    int j = 10;
    i a = &j;
    printf("%d", *a);
    getchar();
    return 0;
}
  1. A.

    10

  2. B.

    0

  3. C.

    1

  4. D.

    error

Attempted by 137 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…