Author: TutsMaster.org

Tutsmaster.org provides tutorials related to tech and programmings. We are also setting up a community for the users and students.
Dynamic Memory Allocation

C – Dynamic Memory Allocation

January 8, 2021

Let’s take an example of array declaration on C programming.   int z[25] It reserves memory space for 25 integer numbers, Sometimes, the problem arises with this declaration. If the user needs to work on more than 25 values the allocated memory will not be sufficient. Besides, if the user needs to work on less […]

Read More
Pointer Type Declaration

C – Pointer Type Declaration

January 8, 2021

Same way as other variables, we have to declare pointers before we use them. Pointer declaration is the same as other declarations. When pointers are declared, the keyword for declaration int, char, etc… declares the type of the pointer variable. The pointer type specifies the type of the variable which pointer points. For each data […]

Read More
Pointer and Use of Pointer

C – Pointer and Use of Pointer

January 8, 2021

A pointer is a variable that stores the address of another variable. Pointers are much used in C, partly because they are sometimes the only way to express a computation, and partly because they usually lead to more compact and efficient code than that can be obtained in other ways. Pointer and arrays are closely […]

Read More
Array and Array Declaration

C – Array and Array Declaration

January 8, 2021

The array is the collection of similar data items that can be represented by a single variable name. The individual data items in an array are called elements. A data item is stored in memory in one or more adjacent storage locations depending upon its type. An array is also known as a series of […]

Read More
Recursive Function in C Programming

C – Recursive Function in C Programming

January 8, 2021

Recursive can be regarded as the ability of function defining an object in terms of a simpler case of itself. It is a process by which a function calls itself repeatedly until some specific condition has been satisfied. The problem must be written in recursive form. The problem statement must include a stopping condition. A […]

Read More
Function Definition and Function Types

C – Function Definition and Function Types

January 8, 2021

C program consists of one or more functions along with function main(). Functions are known as modules this will make a program to easy. In Every program the main() function should be placed, in every program library function like printf(). sqrt(). pow() etc. C Function easy to define and use. The function is one of […]

Read More
For, While, Do While and Infinite Loop

C – For, While, Do While and Infinite Loop

January 8, 2021

For Loop The for loop is one of the powerful loop and flexible loop which provides a more concise loop control structure. It is a pre-test or entry control loop similar to while loop. A program can also use a while loop instead of for loop. If loops are nested then the for loop is […]

Read More
Switch, Break and Continue Statement

C – Switch, Break and Continue Statement

January 7, 2021

Switch Statement The switch statement is also called the constant multiway conditional statement. The program encounter the situation to choose the option particular option from the many kind of statement. To solve this problem you can use if-else statement also but that is a bit complex than the switch statement. The general format of the […]

Read More
Data Types in C Programming

C – Data Types in C Programming

January 7, 2021

A data type defines a set of values that a variable can store along with a set of operations that can be performed on that variable. Each and every variable that we are using in our program must be declared before its use. The reason behind it is that, each and every variable must be […]

Read More
Program to Add Numbers

C – Program to Add Numbers With Explanation

January 7, 2021

This is the C program for adding two numbers, The program will ask to user to enter two numbers and that will store the result of the two number is another variable and that will give the output.  C Code #include<stdio.h>int main(void){    int a, b, c;     printf(“Enter two numbers:”);    scanf(“%d%d”,&a,&b); c=a+b;    […]

Read More