C Programs with arrays
C Programs with arrays
int main() {
int arr[10];
return 0;
}
#include <stdio.h>
int main() {
int arr[10];
int sum = 0;
return 0;
}
……………………………………………………………………………………………
(The following programs are to perform in the lab and to take print)
Problem Statement:
Q1. Write a program to find the maximum and minimum values in a 1D array of integers.
#include <stdio.h>
int main() {
int arr[10],i;
int max_val , min_val;
return 0;
}
Problem Statement:
#include <stdio.h>
int main() {
int rows, cols;
return 0;
}
Problem Statement:
Q3. Develop a program to sort an array of integers in ascending order using bubble
sort.
#include <stdio.h>
int main() {
int arr[10];
return 0;
}