in java i can override the tostring() methode to display objects
You can add an overload function to ostream in C++ but not in C, you have to write or use an existing function. Structs cannot have a function and there are no classes in C.