# Category Archives: One Dimensional Array Programs in C Language

## Using Pointers Sort Array

Using Pointers Sort Array – Write a program in C Programming Language To input N numbers and arrange it in Ascending Order. Using Pointers Sort Array – C Source Code #include <stdio.h> void main() { int *ptr,a[100],i,j,temp,n; printf(“\n\n Using C Pointers : Sort an array using pointer :\n”); printf(“—————————————————-\n”); printf(” Enter the size of array… Read More »

## C Program to Find Smallest Number in Array

Q: Write a C Program to Find Smallest Number in Array The Basic Logic of Smallest Number in Array Program First of all the user will input any 5 numbers in array. The program assumes that the first number is minimum number min = numArray[0]; This C program uses a for loop to get each… Read More »

## C Program to Find Largest Number in Array

Q: Write a C Program to Find Largest Number in Array. The Basic Logic Behind Finding Maximum Number in Array First of all the user will input any 5 numbers in array. The program assumes that the first number is maximum number max = numArray[0]; This C program uses a for loop to get each… Read More »

## Display Elements of Array in Reverse Order

“Display Elements of Array in Reverse Order” is a C language program. It inputs an array of 5 integer elements. It displays array elements in reverse order on screen. That is, it will show element with last index = 4 first of all. The source code for C program to input array of 5 integer… Read More »

## Find Average Temperature of Week

“Find Average Temperature of Week” is a C language program to input 7 days temperature in Array and Find Average”. In this  C language program we enter temperature readings of a week in a float array and then calculate and display average temperature of the week. Here is the source code in C language for… Read More »

## Input Output of Elements in Float Array

“Input Output of Elements in Float Array” is a C language program to declare a 10 element array of float / real numbers. This c language array program will input and output these elements. Here is an image to show the sample run and output of the float array input output C language program. Here… Read More »

## Array input output C program

“Array input output C program” is a C language program to input 10 integer numbers in a 10 element array. This program will show the entered elements on screen, too. Array is a data structure which represents the collection of items of same type. For example, array of 10 integers may be defined as: int… Read More »