Tech Study

C Programming

C String Functions

C String Functions perform certain operations, It provides many useful string functions which can come into action. The <string.h> header …

Read more

C strings

INTRODUCTION : c strings A collection of characters in a linear sequence can be called a string. It is treated …

Read more

Multidimensional Array in C

A multidimensional array in c can also be considered as an array of arrays that are supposed to store homogeneous …

Read more

C Pass Arrays

In this tutorial, we will learn to c pass arrays to a function with examples. Pass arrays to a function …

Read more

C Arrays

Arrays are generally used to store related data under a single variable name with an index. To create an array, …

Read more

C Language Introduction & examples

Example-1: I/O operations #include <stdio.h>  int main() {     int a;     printf(“Example programs\n”);     scanf(“%d”,&a);     printf(“given value: %d”,a);     return 0; } Output …

Read more

C Operators : Operator in C Programming Language

Operators are fundamental tools that are used to perform mathematical and logical operations.  Two terms we often come across while …

Read more

C Input/Output (I/O): printf() and scanf()

Introduction In C language, to perform the tasks we need to process data given by the programmer/user and display the …

Read more

Hello World Program in C Language

Introduction Write a C program to print “Hello, World!” text on the screen #include <stdio.h> int main() { // displays …

Read more

250+ C Programming Examples, Exercises with solutions

INTRODUCTION: C Programming Examples C Language was created in 1972 at Bell Laboratories by Dennis Ritchie. It is a general …

Read more

List of all conditional programs in c language

This c article explains various conditional statements in C programming Language with an example. I have used DEV-C++ compiler for …

Read more

List of C language array programs with an examples

C Array is a collection of variables belongings to the same data type. We can store group of data of …

Read more

List of C Language Loop Programs with Examples

Introduction: C Language Loop Programs Loop program in c statement allows us to execute a statement or group of statements …

Read more

Write a C program to print all natural numbers from 1 to n

Introduction Write a C program to print all natural numbers from 1 to n #include <stdio.h> int main() { int …

Read more

All pointer programming exercises

Pointers are very powerful features of C programming language that differentiates it from other popular programming languages such as Java …

Read more

List of c language function and recursion programming exercises

A function or method is basically a block of statements that perform a specific task. For example, you are building …

Read more

List of C language matrix programs with an examples

Write C Program to Add Two Matrices Write C Program to Multiply Two Matrices Write C Program to check whether …

Read more

List of Switch case programs with an examples

Switch case statements are an alternate method for long if statements that compare a variable to several ‘integral’ values. The …

Read more

C Struct : All structure in C programs with examples

Structure is user defined data type available in C programming language that allows to combine data items of different kinds. …

Read more

List of String programs in c

Introduction to String programs in c The following section has various programs related to strings in C. What is string …

Read more

C Program to convert days to years, weeks and days

Introduction C Program to convert days to years, weeks and days. I have used Code:: Blocks compiler for debugging purpose. But you …

Read more

C Program to Calculate Area of Rectangle

Introduction C Program to Calculate Area of Rectangle. I have used Code:: Blocks compiler for debugging purpose. But you can use any …

Read more

C Program to Calculate Area of Square

Introduction C Program to Calculate Area of Square. I have used Code:: Blocks compiler for debugging purpose. But you can use any …

Read more

How To Calculate Area Of Circle In C Program

Introduction C Program to Calculate Area of Circle. I have used Code:: Blocks compiler for debugging purpose. But you can use any …

Read more

C Program to Print ASCII Value

Introduction C Program to Print ASCII Value. I have used Code:: Blocks compiler for debugging purpose. But you can use any C …

Read more

C Program to find the Size of data types

Introduction C Program to find the Size of data types. I have used Code:: Blocks compiler for debugging purpose. But you can …

Read more

C Program to Convert farenheit to celcius

Introduction C Program to convert farenheit to celcius. I have used Code:: Blocks compiler for debugging purpose. But you can use any …

Read more

How To Convert Celsius To Fahrenheit In C Program

Introduction C Program to convert celcius to farenheit. I have used Code:: Blocks compiler for debugging purpose. But you can use any …

Read more

C Program to print convert feet to meter

Introduction C Program to print convert feet to meter. I have used Code:: Blocks compiler for debugging purpose. But you can use …

Read more

C Program to perform all arithmetic operations

Introduction C Program to perform arithmetic operations. I have used Code:: Blocks compiler for debugging purpose. But you can use any C …

Read more

C Program to Multiply two Floating Point Numbers

Introduction C Program to Multiply two Floating Point Numbers. I have used Code:: Blocks compiler for debugging purpose. But you can use …

Read more

C Program to Swap Values of Two Variables

Introduction C Program to Swap Values of Two Variables. I have used Code:: Blocks compiler for debugging purpose. But you can use …

Read more

Top 45 C programming interview questions and answers

Introduction In this article, you will find basic to most puzzled interview queries questions. This article is very useful for …

Read more

31 Alphabet Pattern Programs in C Language

Pattern printing in C Programming Language is always a favorite topic for all new c programmers. It mainly focuses on outer …

Read more

Star Pattern in C Programming language | Print star pattern in c language

Star Pattern in c Programming In this article, I have shared the list of all Star (*) pattern programs in …

Read more

All number patterns in C programming Language

Introduction to Number Pattern in C In this article, we will learn how to construct different number pattern programs in …

Read more

List of C language basic programs | C programming exercises

Here are Top C Basic programming exercises with detailed solutions and output for improving your coding skills. All the following …

Read more

How To Create Book Details Using Structure In C Program

In simple languge a structure is a cluster of variables of different data types under same name. I have used …

Read more

Write a C program to calculate percentage of student using structure

Introduction to C Language C is a general-purpose, high-level programming language that is widely used for developing software applications, operating …

Read more

Write a C program to demonstrate example of structure pointer

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write a C program to demonstrate example of Nested Structure

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write a C Program to Calculate Difference Between Two Time Periods

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write a C Program to add two distances in inch-feet system using Structure

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write a C program to Store Information in Structure and Display it

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C Program to interchange diagonals of a matrix

Write C Program to interchange diagonals of a matrix #include <stdio.h> void main () { static int array[10][10]; int i, …

Read more

Write C Program to Find the Frequency of Odd & Even Numbers in the given Matrix

Introduction I have used CodeBlocks compiler for debugging purpose. But you can use any C programming language compiler as per …

Read more

Write C Program to Find sum of each row and columns of a matrix

Introduction I have used CodeBlocks compiler for debugging purpose. But you can use any C programming language compiler as per …

Read more

Write C Program to Find the Transpose of a given Matrix

Introduction I have used CodeBlocks compiler for debugging purpose. But you can use any C programming language compiler as per …

Read more

Write C Program to check whether two matrices are equal or not

Introduction I have used CodeBlocks compiler for debugging purpose. But you can use any C programming language compiler as per …

Read more

Write C Program to Multiply Two Matrices

Introduction I have used CodeBlocks compiler for debugging purpose. But you can use any C programming language compiler as per …

Read more

Write C Program to Add Two Matrices

Introduction I have used CodeBlocks compiler for debugging purpose. But you can use any C programming language compiler as per …

Read more

Write C program to right rotate an array

Write C program to right rotate an array #include <stdio.h> #define size 5 // Declaring Size of the array void …

Read more

Write C program to left rotate an array

Write C program to left rotate an array #include <stdio.h> #define size 5 // defining Size of the array void …

Read more

Write C program to find reverse of an array

Write C program to find reverse of an array #include < stdio.h > #define MAX_SIZE 100 //Maximum size of array …

Read more

Write C program to put even and odd elements of array in two separate array

Write C program to put even and odd elements of array in two separate array #include < stdio.h > #define …

Read more

Write C program to merge two sorted array

Write C program to merge two sorted array #include <stdio.h> #define MAX_SIZE 100 //Maximum size of the array int main() …

Read more

Write C program count total duplicate elements in an array

Write C program count total duplicate elements in an array #include <stdio.h> int main() { int arr[100]; int i, j, …

Read more

Write C program to delete all duplicate elements from an array

Write C program to delete all duplicate elements from an array #include <stdio.h> #define MAX_SIZE 100 // Maximum size of …

Read more

Write C program to count number of each element in an array

Write C program to count number of each element in an array #include <stdio.h> int main() { int arr[100], frequency[100]; …

Read more

Write C program to copy all elements of one array to another

Write C program to copy all elements of one array to another #include <stdio.h> #define MAX_SIZE 100 //Maximum size of …

Read more

Write C program to sort an array in ascending order

Introduction Write C program to sort an array in ascending order #include <stdio.h> int main() { int arr[100]; int size, …

Read more

Write C program to print all unique element in an array

Introduction Write C program to print all unique element in an array #include <stdio.h> int main() { int arr[100], size, …

Read more

Write C program to insert an element in array

Introduction Write C program to insert an element in array #include <stdio.h> int main() { int arr[100]; int i, num, …

Read more

Write C program to find maximum and minimum element in array

Introduction Write C program to find maximum and minimum element in array #include <stdio.h> int main() { int arr[100]; int …

Read more

Write C program to count even and odd elements in an array

Introduction Write C program to count even and odd elements in an array #include <stdio.h> #define MAX_SIZE 100 //Maximum size …

Read more

Write C program to find sum of all elements of an array

Introduction Write C program to find sum of all elements of an array #include <stdio.h> #define MAX_SIZE 100 //Maximum size …

Read more

Write a C program to read and print elements of array

Introduction Write a C program to read and print elements of array #include <stdio.h> #define MAX_SIZE 1000 //Maximum size of …

Read more

Write C program to count total number of negative elements in array

Introduction Write C program to count total number of negative elements in array #include <stdio.h> int main() { int arr[100]; …

Read more

Write a C program to print all negative elements in an array

Introduction Write a C program to print all negative elements in an array. #include <stdio.h> #define MAX_SIZE 100 //Maximum size …

Read more

Write C program to read array elements and print the value with the addresses

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to Concatenate Two Strings Using Pointers

Introduction: c program to concatenate two strings using pointers I have used Code::blocks 12 compiler for debugging purpose. But you …

Read more

Write C program to copy one string to another string

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C Program to find length of string using pointer

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to change the value of constant integer using pointers

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C Program input and print array elements using pointer

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C Program to add two numbers using pointers

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to swap two numbers using pointers

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find maximum and minimum elements in array using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to check palindrome number using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find factorial of a number using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to generate nth fibonacci term using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find sum of array elements using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to print elements of array using recursionon

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find HCF or GCD of two numbers using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find LCM of two numbers using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find reverse of a number using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to print even or odd numbers in given range using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find sum of natural numbers in given range using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find power of a number using recursion

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to print perfect numbers between given interval using function

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find diameter, circumference and area of circle using function

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find prime numbers in given range using functions

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to print all strong numbers between 2 numbers

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find Length of the String by passing String/Character

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C Program to convert decimal number to binary using function

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C Program to convert binary number to decimal

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C program to find cube of a number using function

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C to check prime and armstrong numbers using function

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

C Program to Check Even or Odd using Functions

Introduction I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as …

Read more

Write C Program to find maximum number using switch case

Introduction Write C Program to find maximum number using switch case #include <stdio.h> int main() { int num1, num2; //Reading …

Read more

Write C program to print gender (Male/Female) program according to given M/F

Introduction Write C program to print gender (Male/Female) program according to given M/F #include <stdio.h> int main() { char gender; …

Read more

Write C program to check vowel or consonant using switch case

Introduction Write C program to check vowel or consonant using switch case #include <stdio.h> int main() { char ch; //Reading …

Read more

Write C program to check even or odd number using switch case

Introduction Write C program to check even or odd number using switch case #include <stdio.h> int main() { int num; …

Read more

Write C program to create simple calculator using switch Statement

Introduction Write C program to create calculator using switch Statement # include <stdio.h> int main() { char operator; double firstNumber,secondNumber; …

Read more

Write C program to print day of week name using switch case

Introduction Write C program to print day of week name using switch case #include <stdio.h> int main() { int weeknumber; …

Read more

Write C program to print number of days in a month using switch case

Introduction Write C program to print number of days in a month using switch case #include <stdio.h> int main() { …

Read more

Write C program to find LCM of any two numbers

Introduction Write C program to find LCM of any two numbers. What is LCM? Least Common Multiple (L.C.M.) of two …

Read more

Write C program to find HCF of two numbers

Introduction Write C program to find HCF of two numbers. What is HCF? Highest Common Factor (H.C.F.) of two natural …

Read more

Write C program to print number in words

Introduction Write C program to print number in words. #include <stdio.h> int main() { int n, num = 0; //Reading …

Read more

Write a C program to check whether a number is palindrome or not

Introduction Write a C program to check whether a number is palindrome or not.   What is Palindrome number? Palindrome …

Read more

Write a C program to check whether a number is Prime number or not using while & for loop

Introduction Write a C program to check whether a number is Prime number or not using while & for loop …

Read more

Write a C program to calculate compound Interest

Introduction Write a C program to calculate compound Interest #include<stdio.h> #include<math.h> int main() { float amount, rate, intrest, time, ci, …

Read more

Armstrong number in C Language between 1 to n Numbers

To write the program to identify the armstrong number using c language first we need to understand what is an …

Read more

Write a C program to check whether a number is Armstrong number or not

Introduction Write a C program to check whether a number is Armstrong number or not   What is Armstrong number? …

Read more

Write C program to find factorial of any number

Introduction Write C program to find factorial of any number Calculating power of a number using while loop #include <stdio.h> …

Read more

Power in C Programming | C Pow() Function

Power in c uses pow() function to calculate power of a number, which must use “#include<math.h>”, given by the user. …

Read more

C Program to Reverse a Number

Introduction : C program to reverse a number In this blog we have mentioned about the reverse number in c …

Read more

Write C program to calculate product of digits of a number

Introduction Write C program to calculate product of digits of a number. #include <stdio.h> int main() { int n, product=1; …

Read more

Write C program to find first and last digit of any number

Introduction Write C program to find first and last digit of any number #include <stdio.h> main() { int num, last …

Read more

Write C program to find the sum of first and last digit of any number

Introduction Write C program to find the sum of first and last digit of any number #include <stdio.h> #include <stdlib.h> …

Read more

How To Swap First And Last Digit Of A Number In C Program

Introduction Write C program to swap first and last digit of a number #include <stdio.h> #include <stdlib.h> #include <math.h> int …

Read more

Write C program to find sum of odd numbers between 1 to n

Introduction Write C program to find sum of odd numbers between 1 to n #include <stdio.h> int main() { int …

Read more

Sum of Even Numbers in C till N

Introduction Write C program to find sum of even numbers between 1 to n #include <stdio.h> int main() { int …

Read more

write a c program to print sum of digits

Introduction Write a C program to print sum of digits enter by user #include<stdio.h> int main() { int num, total; …

Read more

C Program To Print All Natural Numbers In Reverse Order

Introduction Write a C program to print all natural numbers in reverse order #include <stdio.h> int main() { int i, …

Read more

Write C program to print multiplication table of a given number

Introduction Write C program to print multiplication table of a given number #include <stdio.h> int main() { int i, num; …

Read more

How To Print Ascii Values Of All Character In C Program

Introduction Write C program to print ASCII values of all characters. #include <stdio.h> int main() { int i; // Printing …

Read more

Write C program to print alphabets from a to z

Introduction Write C program to print alphabets from a to z. #include <stdio.h> int main() { char ch; printf(“Alphabets from …

Read more

C program to check whether a triangle can be formed by the given value for the angles

Introduction C program to check whether a triangle can be formed by the given value for the angles. I have …

Read more

C Program to Count Number of Notes

Introduction C program to enter month number and print number of days in month.. I have used DEV-C++ compiler for …

Read more

C program to enter month number and print number of days in month.

Introduction C program to enter month number and print number of days in month.. I have used DEV-C++ compiler for …

Read more

C Program to Calculate Percentage Marks & Division

Introduction C program to input roll number, student name and marks of three subjects (Physics, Chemistry and Information Technology) and …

Read more

C Program to find the eligibility of admission for an engineering

Introduction C program to find the eligibility of admission for an engineering course based on the following criteria. Marks in …

Read more

C program to detrermine a candidate’s age is eligible for casting the vote or not

Introduction C program to detrermine a candidate’s age is eligible for casting the vote or not. I have used DEV-C++ …

Read more

C program to accept two integers and check whether they are equal or not

Introduction C program to accept two integers and check whether they are equal or not. I have used DEV-C++ compiler …

Read more

C Program to Print Day Name of Week

Introduction C program to print day name of week. I have used DEV-C++ compiler for debugging purpose. But you can …

Read more

C program to check whether a character is alphabet, digit or special character

Introduction C program to check whether a character is alphabet, digit or special character. I have used DEV-C++ compiler for …

Read more

C program to check entered character vowel or consonant

Introduction C program to check entered character vowel or consonant. I have used DEV-C++ compiler for debugging purpose. But you …

Read more

C program to check uppercase or lowercase alphabets

Introduction C program to check uppercase or lowercase alphabets. I have used DEV-C++ compiler for debugging purpose. But you can …

Read more

C program to check number is positive, negative or zero

Introduction C program to check number is positive, negative or zero. I have used DEV-C++ compiler for debugging purpose. But …

Read more

C program to check alphabets using conditional operator

Introduction C program to check alphabets using conditional operator. I have used DEV-C++ compiler for debugging purpose. But you can …

Read more

C Program to Check Leap Year

Introduction C Program to check leap year using conditional operator. I have used DEV-C++ compiler for debugging purpose. But you …

Read more

C Program to find the Largest among Three Variables using Nested if

Introduction C Program to find the largest among three variables using nested if. I have used DEV-C++ compiler for debugging …

Read more

C Program To Find Largest Number Using Conditional Operator

Introduction C Program to Find the Largest Number using Conditional Operator. I have used DEV-C++ compiler for debugging purpose. But …

Read more

C Program to Find Largest Number Among Three

Introduction C Program to find the largest number among three number. I have used DEV-C++ compiler for debugging purpose. But …

Read more

C Program To Check Whether Number Is Odd Or Even

Introduction C Program to check whether an integer entered number by the user is odd or even. I have used …

Read more

C Program to Count number of Lowercase and Uppercase Letters

Introduction C Program to Count number of Lowercase and Uppercase Letters. I have used Code:: Blocks compiler for debugging purpose. But you …

Read more

C program to compare two strings using strcmp

Introduction C program to compare two strings using strcmp. I have used Code:: Blocks compiler for debugging purpose. But you can use …

Read more

C Program to count number of alphabets, digits and special characters in string

Introduction C Program to count number of alphabets, digits and special characters in string. I have used Code:: Blocks compiler for debugging …

Read more

C program to reverse a string enter by user

Introduction C program to reverse a string enter by user. I have used Code:: Blocks compiler for debugging purpose. But you can …

Read more

C program to Change string to lower case without strlwr

Introduction C program to Change string to lower case without strlwr. I have used Code:: Blocks compiler for debugging purpose. But you …

Read more

C program to change string to upper case without strupr

Introduction C program to change string to upper case without strupr. I have used Code:: Blocks compiler for debugging purpose. But you …

Read more

C program to convert a string to upper case

Introduction C program to convert a string to upper case. I have used Code:: Blocks compiler for debugging purpose. But you can …

Read more

C program to convert string to lower case

Introduction C program to convert a string to lower case. I have used Code:: Blocks compiler for debugging purpose. But you can …

Read more

C Program to Find String Length

Introduction C program to find string length. I have used Code:: Blocks compiler for debugging purpose. But you can use any C …

Read more

C program to concatenate two strings

Introduction C program to concatenate two strings. I have used Code:: Blocks compiler for debugging purpose. But you can use any C …

Read more

C Program to Add / Sum Two Numbers

Introduction C Program to Add / Sum Two Numbers. I have used Code:: Blocks compiler for debugging purpose. But you can use …

Read more

How to Print Hello World Program in C language?

How does the “Hello, World!” program operate? | Hello World Program in C The preprocessor command #include instructs the compiler …

Read more