Structures


  1. What will be the output of the following C code?
    #include <stdio.h>
    struct Company
    {
    char *ch;
    };
    void main()
    {
    struct Company c1;
    struct Company *c2 = &c1;
    c2->ch = "Interview Mania";
    printf("%s", c2->ch);
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Interview Mania