#include <stdio.h>
long int fact(int n);
int main()
{
int n;
printf("Enter a Positive Integer: ");
scanf("%d", &n);
...
Recursion
Recursion is very useful concept. Recursion, in very simple words, function calling itself. Sometimes, we need to repeat the function many...
Call by Value and Call by Reference
Call by value and Call by reference is the extended part of Functions. Let's see what's it? For this, you need to understand the concept...
Structures and Union
Unlike the array, which stores the data in the variables of the same data type, Structures and Union are used for data storage in variables...
Pointers
So, now let's begin with the Advanced Part of C Programming. The first concept, we are going to learn about is pointers. So what are pointers?...
Functions
Functions are basically the block of codes which we have to use multiple times in the program like loops. Functions can reduce the number...
One-Dimensional and Two-Dimensional Array
After learning the basics of array, let's see what's One-Dimensional Array and Two-Dimensional Array? One-Dimensional Array is normal array,...
Array
Array is collection of variables having the same data type. Suppose, you need to read marks of 10 students and print them. For this problem,...
Strings
String is group of characters. String is one of type of array with null character (Array will be discussed in next tutorial). Null Character...
do ... while Loop
do ... while Loop is exit controlled loop. In this loop, the codes inside the do will be executed first and then the condition in while is...
while Loop
while Loop is also entry controlled loop. The difference between for Loop and while Loop is that we need to declare and initialize the...
for Loop
for Loop is entry controlled loop. So, what's the syntax of for Loop?
for ( initialization ; condition ; increment/decrement )
{
// Codes...
Loops
So, what are Loops? Basically, Loops are used for repeating the same codes multiple times, i.e. executing same codes multiples. Let's learn...
Data Types
Let's have a look at Data Types in C Language. Data types are common in every programming language. There are five basic data types which...
Hello World
After learning the structure of C program, let's code a program and make it print "Hello World!".
#include <stdio.h>
int main()
...
Structure Of C
Let's start the tutorial with Structure Of C Program. It is necessary to follow the structure or else the compiler will give an error. Structure...
Header files
This is the first thing which we declare in the program. There are many header files but right now, starting as a beginner, there are only...
Introduction to C
C is a low-level programming language. Dennis Ritchie developed the programming language C in the year 1972. More updation over the previous...
Subscribe to:
Posts (Atom)