title: Could I retrieve the datatype from a variable in C?
body: <p>Has a way to get the datatype in C?</p>
  
  <p>For example:</p>
  
  <pre>
  int foo;
  
  if (foo is int)
  {
      // do something
  }
  </pre>
  
  <p>or something like:</p>
  
  <pre>
  if (typeof(foo) == typeof(int))
  {
      // do something
  }
  </pre>
  
  <p>Thanks in advance.</p>