Skip to main content

Posts

Showing posts with the label c for beginners

How to Install C ?(Windows, Mac, Ubuntu)

  How to Run C program in Windows, Mac, Linux? If you have already installed C you can skip to part 1 where an overview is provided 101/Introduction to C - part 1   or you can start from some core topics here 101/Introduction to C - part 2  If you want to install PyCharm you may follow the installation guide here>> How to Install PyCharm? Ways to run C:  1. Using Online Compilers is the easiest way to run your C program, here is the Online Compiler that I  prefer:  https://rextester.com/l/c_online_compiler_gcc   2 .  Installing C compilers in system. Windows:     I prefer Dev C/C++ compiler, so here the steps to follow:   1.  Download the source file here :   Dev C/C++ setup   2.   After downloading run the setup you will see the 'select language' pop-up:

101/Introduction to C language - part 1

We are assuming you have C compiler already Installed in your systems, if not you can read  How to install C compilers ? (Ubuntu, Mac, Windows) What is C ? C is high-level compared to assembly but low leveled compared to JavaScript. But in general terms C is considered as high level language . So when we talk about c language, we usually hear the following terms Header file Data types Variables Main function Operators Hello World Program ( gateway to programming world  😉 ) Addition/Subtraction program for the basic understanding of Operators What is Header File ? As a beginner I never got a satisfactory answer for the same. In a nutshell, we can say “ It's just like a brain to a body ” ,  It enables us to use the functionality which is pre-implemented by the Developers, just like the brain adds the functionality to other body parts. Header file has a file extension of '.h'  for example “stdio.h” also called standard i...