Category: C Programming

Functions in C
C Programming

Functions in C

In C programming language, a function is a self-contained block of code that performs a specific task. Functions are used to break down a program into smaller, manageable pieces(chunks), making the code more modular(small parts), reusable(code reusable), and easier to understand and maintain. C functions have the following components: Function Declaration: It specifies the function’s […]

Rekha Setia 
Operators in C
C Programming

Operators in C

The symbols which are used to perform Arithmetic (mathematical), logical and relational operations in a C language are called C operators. Types of Operators and Examples. Operator consists of the following types: Arithmetic Operators in C: the addition is denoted by a + sign. We use addition to add two variables.subtraction is denoted by a – signmultiplication is […]

Rekha Setia 
Variables and Constants in C
C Programming

VARIABLES AND CONSTANTS IN C

In C programming language, a constant is an identifier that contains a specific value The value cannot be altered during normal c program execution as the value is constant.Exampleconst float PI = 3.1415927; // (Pi is a constant) for(int i=0;i<10,i++) // i is a variable Floating-point constants Floating point constants in C programming are the type of numeric constants […]

Rekha Setia 
C Data Types
C Programming

C Data Types

In C programming, data types specify an extensive system used for declaring variables(like int a) or functions(void fun1()) of different types. The C data type of a variable determines how much space it occupies in memory and how the bit pattern stored in memory will be understood by the processor.Various arithmetic datatypes and functional data types available in the […]

Rekha Setia 
Storage Classes in C
C Programming

Storage Classes in C

Storage classes in a C Programming Language are classified into four main types according to the storage area and their behavior, in this c programming tutorial we use these storage classes in many programs:- Automatic storage class: Automatic storage class variables in C Programming Language will be created and destroyed automatically. In the Automatic storage class, variables are stored […]

Rekha Setia 
String Constants vs Char Arrays in C
C Programming

String Constants vs Char Arrays in C

A string constant is a series of characters(array of characters or group of characters) enclosed with double quotes(like “GOOD “). A string constant is a one-dimensional (str11[]) array of characters. A character constant is a character enclosed in single quotes. (like ‘G ‘). Each character in a string takes only 1 byte. String and Character […]

Rekha Setia 
Call by Value and Call by Reference in C
C Programming

Call by Value and Call by Reference in C

Argument passing (change(a,b), change(x,y))is a technique for transferring data and information between the calling and called function. There are two ways to pass arguments to the called function: a)Call by Value b)Call by reference. Call by Value: The call by value method is the default technique for passing arguments. In this method only the copies […]

Rekha Setia 
What is C Programming
C Programming

What is C Programming?

The C Programming language is more than 40 years of old. It got its name because it was influenced by a now almost forgotten programming language called B(which was in turn derived from BCPL) C has gone on to spawn a lot other languages, utilized for both general and niche purposes.C itself, though, has never […]

Rekha Setia 
Pointers in C with Example
C Programming

Pointers in C with Example

Introduction of Pointer in C A pointer is a variable in the C Programming Language that holds the address of another variable of the same data type. For example, an integer variable contains an integer value, however, an integer pointer holds the address of an integer variable. Pointers in C have derived data types. Whenever a variable […]

Rekha Setia