hat if we define the below structure in C and C++?

a) Error in C but not in C++
b) Error in C++ but not in C
c) No error in both C and C++
d) Error in both C and C++

1 thought on “hat if we define the below structure in C and C++?”

  1. a
    Explanation: The above definition will give an error in C but not in C++ as C does not allows the programmer to give any default values to any member of structure but C++ does allow.

Leave a Comment