Posts

Showing posts with the label ctutorial

Learning C language part 2 Basics of C

Image
Welcome to the second part of this Series of C language. In this series, we will start with the basic of C language. Previous post Environment Setup Text Editor Install any of the text editor available in the market, suggestion consist of the Sublime Text Editor, notepad++ etc. I have been using Sublime Text Editor. Compiler Install the compiler if you have not previously then check out this post. Installing C/C++ (GCC) compiler On Windows Basics of C Before starting anything lets take a look at the minimum code required to run a C program. Now we are going to do the Most famous ritual of the programming, Program of Hello World. #include <stdio.h> int main(int argc, char const *argv[]) { printf("Hello World!\n"); return 0; } save this program as the hello.c this will give output as like Comments in C comment is of two types in C. first // this is single line comment in c Second, /* this is multiline comment in c language */ Semicolons in C A semicolon terminates the

Learning C language part 1 - Introduction to C

Image
Welcome to this tutorial series Learning C language. In this tutorial series, we start very easily with C language and learn it's concept easily and efficiently. We will learn by doing not by just the learning things and forgetting and again learning and forgetting. So to strengthen our concept we will do some example each tutorial so it will help us to build some experience and make our concept stronger. Remember with the Practice and Hard Work you can achieve anything in this so keep practicing Guys. After the startup motivation now we will start with the introduction of the C language. Note: I will try to keep tutorial short and easy so that they won't bother you of being too lengthy. Soooo without wasting much time let's start the tutorial. History First, let's start with the introduction. C language is an Imperative Procedural programming language developed by the Dennis Ritchie in 1972 at bell laboratories of AT&T (American Telephone & Telegraph), locat