We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I am trying to initialize a struct, but I get the following error:
Error #29: Expected an expression
typedef struct { atp V1; atp V2; atp V3; atp V4; } tosh_at; tosh_at tosh_options ={ .V1 = 12, .V3 = 5, };
Can someone please help me. Thanks in advance.
First try the most basic google search about how to initialize structures.
I already did and just found a solution to initialize all variables
tosh_at tosh_options ={12,10,5,2};
But I want to initialize just two of them.