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 »

 123 total views,  1 views today

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 »

 2,584 total views

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 »

 4,384 total views,  1 views today

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 »

 12,091 total views

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 »

 10,380 total views,  2 views today