C PROGRAMMING
-
What is software
What is software? A computer cannot do anything on its own. We need to give instructions to it to make…
Read More » -
write a c program print fibonacci series using recursion
Fibonacci series using recursion? #include int fib(int n){ if (n
Read More » -
write a c program to merge two files into third file
C program to merge two files into third file? #include <stdio.h> #include <stdlib.h> void main() { FILE *fs1, *fs2,…
Read More » -
write a c program to copy contents of one file to another file
C program to copy contents of one file to another file? #include<stdio.h>#include<string.h>main() { FILE *fp1, *fp2; char a; fp1 =…
Read More » -
write a c program to implement all operations of files
File handling with menu driven program All operations? #include<stdio.h>#include<conio.h>#include<string.h>#include<stdlib.h>// Function deceleration.void write_to_file(char file_name[]);void read_form_file();void read_specific_record(char file_name[]);void update_file(char file_name[]);void delete_record();void…
Read More » -
write a c program to add dialgonal elements of matrix
C program to add diagonal elements of matrix? #include<stdio.h> main(){ int i, j, rows, columns, a[10][10], Sum = 0; printf("n…
Read More » -
write a c program to print diagonals of a matrix
C program to print diagonal elements of a matrix? #include<stdio.h> int main(){ int array1[10][10],i,j,m,n,sum = 0; printf("Enter no. of rows…
Read More » -
write a c program to multiply two matrix
C program to multiply two matrices? #include <stdio.h>#include <conio.h>main(){int i, j, k;int rows1, cols1, rows2, cols2, res_rows, res_cols;int mat1[5][5], mat2[5][5],…
Read More » -
write a c program to transpose matrix
C program to transpose/inverse a matrix? #include <stdio.h>#include <conio.h>main(){int i, j, mat[3][3], transposed_mat[3][3];printf("n Enter the 9 elements of the matrix…
Read More » -
write a c program to add two matrix
C program to add two matrix into third matrix? #include <stdio.h>main(){ int r, c, a[100][100], b[100][100], sum[100][100], i, j;…
Read More » -
write a c program to copy elements of one array to another
C program to copy elements of one array to another array? #include<stdio.h> main() { int arr1[30], arr2[30], i, num; printf("nEnter…
Read More » -
write a c program to megre two arrays into third array
C program to merge two arrays into third array? #include<stdio.h> main(){ int aSize, bSize, mSize, i, j; int a[10], b[10],…
Read More » -
write a c program to implement bubble sort on an array
Bubble sort #include <stdio.h>main(){ int a[100], number, i, j, temp; printf("n Please Enter the total Number of Elements : ");…
Read More » -
write a c program to implement selections sort on an array
Selection sort #include <stdio.h>main(){ int array[100], n, c, d, position, t; printf("Enter number of elementsn"); scanf("%d", &n); printf("Enter %d integersn",…
Read More » -
write a c program to implement insertion sort on an array
Insertion sort #include <stdio.h>main(){ int n, array[1000], c, d, t, flag = 0; printf("Enter number of elementsn"); scanf("%d", &n);…
Read More »