I am a beginner programmer in C. I have a structure which has different data types as members like int, float, bool. I am trying to initialize this struct to a value of 0.0 during initialization and also during run time for an Embedded application. I am doing member by member initialization. I cannot use memset() function as it increments the pointer by 2 bytes. I am wondering if there's an efficient way of doing this initialization.
Ex:
typedef struct _ABC_
{
float a;
float b;
float c;
int x;
bool_t y;
}ABC;