Posts by João Esteves • 31 points
1 post
-
3
votes2
answers121
viewsQ: Can I return a struct by initiating it into a Return in ANSI C?
Good morning guys, I wonder if I can do something like this... typedef struct Result { int low, high, sum; } Result; Result teste(){ return {.low = 0, .high = 100, .sum = 150}; } I know this…