Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)
C Programs | C Programming
Latest :

C Programs

C Program : Maximum Scalar Product of Two Vectors

Write a C program to find the maximum scalar product of the given two vectors. For this, we will represent vectors in the form of arrays and the inputs necessary are size of the two arrays and the data values or elements of the two arrays. The resultant output is an integer representing the largest or maximum possible scalar product ...

Read More »

C Program : Find Missing Elements of a Range – 2 Ways | C Programs

Write a C program to find the missing elements of a given range. For this, the set of inputs necessary are, size of an array or number of elements in the array along with the elements or data values of the array. We also need the start and end range as input based on which we’ll compare with the array ...

Read More »

C program : Find Median of Two Sorted Arrays | C Programs

Write a C program to find the median of the given two sorted arrays. Median is the middle number when the numbers are sorted in either ascending or descending order. To implement this, our required inputs are the sizes of two arrays along with the elements or data values of the two arrays. Our desired output is the double type ...

Read More »

C Program Patterns of 0(1+)0 in The Given String | C Programs

Write a C program to  find the number of patterns formed of 0(1+)0 in the given string. For example, 010, 0110, 01110, etc. To implement this, the input necessary is a string on which the number of 0(1+)0 patterns formed is to be calculated. Our desired output is an integer number denoting the number of such patterns formed on the ...

Read More »

C Program : Rotate the Matrix by K Times | C Porgrams

Write a C program to rotate the given square matrix by k times. To implement this, we require the size of square matrix along with the elements or data values of the square matrix. The desire output is also a matrix of 2D array after rotating the input array k times, Rotate matrix by 90 degrees clockwise The first step ...

Read More »

C Program : To Find Maximum Element in A Row | C Programs

Write a C program to find the maximum element in each row of a given square matrix. To do so, we require the size of the square matrix and the data values or elements of the square matrix as input. Our desired output is the maximum value of each row being displayed on the console screen in the end. The ...

Read More »

C Program : Check if An Array Is a Subset of Another Array

Write a C program to check whether a given array is a subset of another given array. We can call an array a subset of another array if all the elements of the array are present in the other array as well. The set of inputs required are the sizes or number of elements in the two arrays along with ...

Read More »

C Program : Non-Repeating Elements of An Array | C Programs

The problem statement given is, to write a C program to display the non-repeating elements in a given array. To find the non-repeating characters, we require the number of elements in the array and the data values or elements of the array as inputs. Our desired output at the end is for all the non-repeating elements in this array to ...

Read More »

C Program To Check Upper Triangular Matrix or Not | C Programs

C program to determine whether the given matrix is an upper triangular matrix or not. A square matrix can be called an upper triangular matrix if all the elements below the main diagonal are zero. The inputs required for this are the size of the square matrix (n) along with the data values or elements of the matrix (2D array). ...

Read More »

C Program : To Find the Maximum Element in a Column

Write a C program to find the maximum element in each column of a given matrix. To do so, we require the size of matrix or 2D array and the elements of the array as inputs. Our desired output is the maximum element of each column displayed on the console screen. For this, the first step is to gather all ...

Read More »
Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)