Tuesday, 31 January 2017

Arrays in C Language


In C language, arrays are referred to as structured data types. An array is defined as finite ordered collection of homogeneous data, stored in contiguous memory locations.
Here the words:
·         finite means data range must be defined.
·         ordered means data must be stored in continuous memory addresses.
·         homogeneous means data must be of similar data type.

Monday, 30 January 2017

How to use Loops in C Lanugage


In any programming language, loops are used to execute a set of statements repeatedly until a particular condition is satisfied.

A sequence of statements are executed until a specified condition is true. This sequence of statements to be executed is kept inside the curly braces { } known as the Loop body. After every execution of loop body, condition is verified, and if it is found to be true the loop body is executed again. When the condition check returns false, the loop body is not executed.

Switch Statement


Switch statement is used to solve multiple option type problems for menu like program, where one value is associated with each option. The expression in switch case evaluates to return an integral value, which is then compared to the values in different cases, where it matches that block of code is executed, if there is no match then default block is executed. The general form of switch statement is:

Sunday, 29 January 2017

Factorial of a Number- C Program

In this video tutorial, I've explained how you can write a C Program for Finding out the Factorial of any number by using the looping method. Below is the video of Factorial of any Number in C.


Decision making in C

Decision making is about deciding the order of execution of statements based on certain conditions or repeat a group of statements until certain specified conditions are met. C language handles decision-making by supporting the following statements,
·         if statement
·         switch statement
·         conditional operator statement
·         goto statement

Variables in C Language

A variable is a name that may be used to store a data value. Unlike constant, variables are changeable, we can change value of a variable during execution of a program. A programmer can choose a meaningful variable name. Example: average, height, age, total etc.

Addition of Two Numbers - C Program

In this video, you'll see how to use the (+) Operator in C Program for performing Addition of Two Numbers. By using the same code and changing the Operator Symbol, you can perform other operations like Minus (-), Multiply (*), Divide (/) & Remainder (%).


If you like this video, Plz Share it and Subscribe to my YouTube Channel for more video tutorials. 

Data types in C Language

Data types specify how we enter data into our programs and what type of data we enter. C language has some predefined set of data types to handle various kinds of data that we use in our program. These data types have different storage capacities.
C language supports 2 different type of data types,

Sunday, 15 January 2017

Operators in C Language


C language supports a rich set of built-in operators. An operator is a symbol that tells the compiler to perform certain mathematical or logical manipulations. Operators are used in program to manipulate data and variables.

C operators can be classified into following types:

·         Arithmetic operators
·         Relation operators
·         Logical operators
·         Bitwise operators
·         Assignment operators
·         Conditional operators
·         Special operators