Home » C Programming » Typedef » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    typedef int integer;
    int main()
    {
    int n1 = 120, *p;
    float n2 = 250;
    integer k = n1;
    p = &k;
    printf("%d\n", *p);
    return 0;
    }
    1. 250
    2. Compilation Error
    3. Garbage value
    4. 120
    5. None of these
Correct Option: D

120



Your comments will be displayed only after manual approval.