Arrays in C

Arrays in the C language are a set of homogenous data types stored at the contiguous memory location. We can define one array variable to describe individual variables rather than specifying separate variables. An index lets you access a distinct element in an array. Structure…

3 years ago

Program to check whether a number is even or odd

To determine whether an integer number is even or odd, utilize functions. We have created a function even_odd(int n) with…

3 years ago

Recursive function in C

In the C programming language, a function may call itself. A function is called recursive if a statement within the…

3 years ago

Call by Value & Call by Reference

There are two ways to pass the data into the function in C language:  method :call by value method :call by…

3 years ago

Passing arguments between functions in C

The functions that we use need to be flexible, i.e, they should be able to pass values among other functions.…

3 years ago

Functions in C

A computer program cannot handle all the tasks by itself, instead, it requests other programs like entities called, functions in…

3 years ago

Jump statements in C

In some programming cases, we want to take control to the start of the loop, skipping the statements inside the…

3 years ago

do-while loop examples

Here are a few examples of the do-while loop. Printing table of a number using do-while: #include<stdio.h> int main(){ int…

3 years ago

do-while loop in c

The do-while loop in c in an exit controlled loop unlike the for and the while loop the condition is…

3 years ago

while loop examples in c

Let us look at various examples of the while loop in c. Printing n numbers: #include <stdio.h> int main() {…

3 years ago