C Language Tutorial

Introduction to C Programming C is most popular and widely used computer programming language. It was developed by Dennis Ritchie in 1972 at the Bell Lab. It is used to develop system application software. There are various UNIX application developed in C …

Read moreC Language Tutorial

Features of C Language

We should use C Language because of its features and we can develop various types of system applications like text editor, print spooler, network driver and many more. Features of C Language C has various features that are given below: …

Read moreFeatures of C Language

C printf and Scanf

Input-Output functions in C Programming In C Language, the printf() and scanf() are inbuilt library functions that used for input and output. It is defined in the header file“<stdio.h>”. printf() Function: In C programming language, printf() function is used to …

Read moreC printf and Scanf

C Data type

Data Types in C with Examples Data types are used to define the type of data that a variable can store to perform a specific operation. ANSI C provides three types of data-types. Primary Data Types Derived Data Type User …

Read moreC Data type

C Token

C Token and Keyword The C tokens are the basic buildings blocks in C language which are constructed together to write a C program. Each and every smallest individual unit in the C program is known as C Tokens. There are six types …

Read moreC Token

Variable in C

Variable is an identifier that holds data in memory. It is used to identify input data in a program. The value of the variable can change at the time of executions. Let’s consider the syntax of a variable.

We …

Read moreVariable in C

Operators in C

An operator is a special symbol that tells the compiler to perform specific mathematical or logical operations. It is the combination of constants and variables through expressions. Example:

Where, =, +,* are operators, a,b,c are the variables and  5 …

Read moreOperators in C

Comments in C

Comments are used to comment on the line of code in the program. Comments are a way of inserting remarks and reminders into code without affecting its behavior. The compiler ignores comments, treating them as though they were whitespace. There …

Read moreComments in C

Escape Sequence in C

An escape sequence is a sequence of character that used inside the string literal or character.  All the escape sequence is used with the backslash (\) symbol. The list of an Escape sequence is as follows: Escape Sequence Meaning \a …

Read moreEscape Sequence in C

C – Storage Classes

C storage class is used to define the scope variables and function. There are four various types of storage classes that are given below. auto: The auto keyword is the default storage class for all the local variables. Let us …

Read moreC – Storage Classes

C Decision control statement

Decision Making C conditional statements are used to specify one or more conditions. The statements will be executed if the condition becomes true otherwise alternative statement will be executed if the condition becomes false. C language supports the following statement: …

Read moreC Decision control statement

Loop Statement in C

Loop statement is used to execute one or more statement repeatedly multiple times. There are three types of loops in C language. Why use loop? We can use loop because it executes a block of code multiple times and it …

Read moreLoop Statement in C

Break, continue and goto statement in C

Break statement Break statement is used to break the process of a loop (while, do while and for) and switch case.

Example 1

Example 2

  Continue Statement: The Continue statement is used to continue the execution …

Read moreBreak, continue and goto statement in C

Type Casting in C

Type casting is a way to convert a variable from one data type to another data type. Syntax:

        Example:

Output

← Prev Next →

Function in C

Function is a group of statements that are used to perform any task. In other words, we can say that a function is a self- contained a block of programs that perform a coherent task. Why to use function A …

Read moreFunction in C

Recursion in C

Recursion is a programming technique that allows the programmer to call the function within the same function. The function which calls the same function is known as recursive function but a function that calls itself and doesn’t perform any task …

Read moreRecursion in C

String in C

String is a collection of character or group of characters. In array, string of character is terminated by a null value “\0” and enclose between double quote. We can declare string in two ways: By char array. By string literal …

Read moreString in C

C Array

An array is a collection of elements that are used to hold the fixed number of values of the same type. We cannot change the size and type of array after its declaration. Why should we use an Array? We …

Read moreC Array