I have a C code I need to understand. There is a
typedef struct someStruct {
    int i; 
    char c; 
    someStruct() {
        i = 0;
        c = 'c';
    }
    someStruct(char inpChar) {
        i = 1;
        c = inpChar;
    }
} t_someStruct;
(The code doesn't really make sense or serve a purpose, I know. I just simplified it.) So there is this structure and it has two members (int i and char c). The interesting part is that it has basically two constructors, which is a new concept to me. It works normally, but can we write constructors for structures? I couldn't find anything on Google, maybe I am not searching right.
 
     
     
     
     
    