I want to create a structure called CarSpeed it has 4 int FR,FL,BR,BL (FrontRight,..) ; and i would like to create a function that returns this structure :
ActualSpeed Readspeed(void)
{
code to read the speed of the car(already done)
}
Can someone help me define a function that returns this structure ? only the way how I should define it, the usual C way doesnt work :
typedefstruct CarSpeed{...}
and then
CarSpeed ActualSpeed;
ActualSpeed Readspeed(void){.. }