Home » C Programming » Structures » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    struct Calc
    {
    int m;
    int n;
    };
    int main()
    {
    struct Calc c = {10};
    struct Calc c1 = {11};
    if(c == c1)
    printf("Equal\n");
    else
    printf("Not Equal\n");
    }
    1. Equal
    2. Not Equal
    3. Garbage value
    4. Compilation Error
    5. None of these
Correct Option: D

Compilation Error




Your comments will be displayed only after manual approval.