Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    struct Employee
    {
    int id;
    char emp_name[25];
    };
    void main()
    {
    struct Employee Emp;
    Emp.id = 101;
    printf("Ajit Kumar Gupta");
    }
    1. 101
    2. Compilation Error
    3. Garbage value
    4. Ajit Kumar Gupta
    5. None of these
Correct Option: D

Ajit Kumar Gupta



Your comments will be displayed only after manual approval.