title: Can I return a initialized struct on one line in ANSI C?
body: <p>I just wanna know if I can do something like that...</p>
  
  <pre class="lang-c prettyprint-override"><code>typedef struct Result{
    int low, high, sum;
  } Result;
  
  Result test(){
    return {.low = 0, .high = 100, .sum = 150};
  }
  </code></pre>
  
  <p>I know that is the wrong way, but can I do that or I need to create a local variable to receive the values and then return it?</p>