title: How to compile C into an executable binary file and run it in Android from Android Shell?
body: <p>I have a Device on which I installed Android Gingerbread 2.3.4
  Here i want to run C executable file on android device</p>
  
  <p>I am able to run android NDK application on this Device and it runs perfect.
  But I want to run only one <code>hello.c</code> executable file on the Device.</p>
  
  <pre><code>/* #includes #defines ... */
  
  int main(){
      // Do something when this is executed
      return 0;
  }
  </code></pre>
  
  <p>Is there any way to compile this file with <code>Android NDK</code> tool chain so I can run this file's executable?</p>
  
  <p>I found one thing <a href="http://my.opera.com/otaku_2r/blog/build-and-run-c-application-on-android" rel="nofollow noreferrer">here</a> but this is not working for me. I am using <code>Android NDK, Revision 7b</code> for Linux. 
  There is no directory structure like this.</p>