C under LINUX (Using Sublime-Text and Terminal)
This post is about to how we can write, compile and run a C program in LINUX OS. (I use Ubuntu 14.10) To compile a program we need a compiler. There is a pre-installed compiler in Ubuntu named GCC (GNU C Compiler). In case you don't have this, don't worry you can install it easily by using the following steps. Installing GCC in Ubuntu - 1 . Open Terminal. (press key alt+ctrl+T) 2 . Write the following code '$ sudo apt-get update ' and hit Enter key It will ask for password of administrator, enter it and press Enter key It takes some time to update cache list and finally done. 3 . Now to download GCC write the following command ' $ sudo apt-get install gcc' (maybe it ask for password again) And it downloads and installs latest version of GCC. Now we are ready with our compiler. Setting up Sublime Text - The next we need that is a text editor. There is a text editor pre-installed named 'gedit', but if we don't want to use this, we...