Home » C Programming » Structures, Unions, Enums

Point out the error in the program? #include int main() { struct emp { char n[20]; int age; }; struct emp e1 = {"Dravid", 23}; struct emp e2 = e1; if(e1 == e2) printf("The structure are equal"); return 0; }

Correct Answer: Error: Structure cannot be compared using '=='

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion