Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    struct Employee
    {
    int Id;
    char Name[35];
    };
    struct Employee emp;
    emp.Id = 15;
    printf("%d", emp.Id);
    }
    1. compilation Error
    2. Garbage value
    3. 15
    4. Nothing
    5. None of these
Correct Option: C

15



Your comments will be displayed only after manual approval.