Category: Fundamentals of C Programming

Introduction to C Programming 97

Introduction to C Programming Language

Resource download – C Character set PDF (Click here to download) The above video is an extract from the online course – “C Programming: The ultimate guide for beginners” which we are currently working on. Consider subscribing to Youtube channel – Aptuts in order to get latest updates on new videos and online C programming course. C programming is a language developed by AT & T’s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. C language is reliable, simple and easy to use. It has survived for more than 4 decades....

Variables, Constants an Keywords in C Programming 53

Variable, Constant and Keyword in C

Resource download – List of C keywords PDF (Click here to download) The above video is an extract from the online course – “C Programming: The ultimate guide for beginners” which we are currently working on. Consider subscribing to Youtube channel – Aptuts in order to get latest updates on new videos and online C programming course. Variable, constant or keyword in C can be formed from any combination of Alphabets, Digits and Special Symbols. A constant in C programming is an entity whose value does not change throughout the program execution. A variable in C is an entity whose...

Learn C - understanding c programming 47

Learn C with help of an example

In this article, we will learn C by going through the below program and understanding each line of C code in detail. 1) /* 2) Program: 3) Addition of two numbers 4) */ 5) //Here it starts 6) #include<stdio.h> 7) #include<stdlib.h> 8) void main() 9) { 10) int a, b, c; 11) /*Assign the values to the variable a and b */ 12) a = 5; 13) b = 4; 14) /*Perform addition of a and b */ 15) c = a + b; 16) printf(“\nAddition of a and b is %d”, c); 17) } Let us learn C by...

sizeof operator in C 4

sizeof operator in C

sizeof operator in C is an unary operator which can be used to find the size of the data-type or expression or a variable. It returns the size of the memory allocated (in Bytes) by the compiler. Lets say, we want to find the size of the memory allocated to the data-type int. We can find it by using sizeof operator as shown in the below code: #include<stdio.h> #include<conio.h> void main() { clrscr(); int sizeOfInt; sizeOfInt = sizeof(int); printf(“%d Bytes”, sizeOfInt); getch(); } Output: 2 Bytes As you can see, the above code calculated the size of int data type...

Scope of Local and Global Variables in C Programming 1

Scope of Local and Global Variables in C Programming

The scope of variables refers to that portion of the program where the variables can be accessed. They are accessible in some portion of the program and in the other they are not accessible. Scope of a variable defines the portion of the program in which the set of variables can be referenced and manipulated. When a variable is required in a program, it can be declared as: Local variable Global variable Local Variables in C Programming Language The variables that are declared inside a function are called as local variables The scope is only within the function in which...

The C Preprocessor Directives 15

The C Preprocessor Directives

The job of the C Preprocessor is to process the source code before it is passed to the compiler. The preprocessor command is also known as directive. The C Program is often called as source code. Before the program is compiled, the source code goes through one process called preprocessor. The preprocessor gets the source code (pr.C file) as input and creates expanded source code (pr.I file). This expanded source code is then passed to the compiler for compilation. Following are the preprocessor directives: Macro expansion File inclusion Conditional Compilation Miscellaneous directives Lets discuss these preprocessor directive one by one....

FREE C Cheatsheet - Speed Up Your C Programming.

FREE C Cheatsheet - Speed Up Your C Programming.

Download a 7-page free cheat sheet for easy and quick access to C Concepts, Snippets, and Syntax.

Thank you! Check you inbox and access your cheat-sheet