title: Properly defining arrays in C++
body: <p>I am trying to define an array of unknown size for a float but don't understand how the malloc() function works, can someone show me what it should look like and how it works?</p>
  
  <p>from what enter code hereI understand it should look something like</p>
  
  <pre><code>float * input;
  input = new float [];
  </code></pre>
  
  <p>but I get error: "input" does not name a type</p>