c interview question
C Program to delete element from array at given index
In this tutorial, we are going to learn to write C Program to delete element from an array at the given index. To delete the element from the given index, we will iterate the array and to the given index. Now we will just shift each element towards the left one by one and decrease … Read more
C Program to delete given element from array
In this tutorial, we are going to learn to write C Program to delete a given element from an array. To delete the given element we will compare the given element with the array elements. If we find a match then will delete the element from the array otherwise will check for the next array … Read more
C Program to delete element at end of Array
To delete an element from the end in an array, we will just reduce the size of an array by one. After reducing the size we will print the array and will find that the last element is not printing. It means that the element is not in the array now. Introduction to Arrays in … Read more
C program to insert element at a given location in Array
In this tutorial, we will learn to write C program to insert an element at the given location in an array. To insert an element at a given location first we have to go to that location and then shift each element towards the right. Or we can also do something like shifting the elements … Read more
C program to insert an element at end of an Array
To write a program in C to insert an element at end of an Array, First of all, we will find the last index of elements. After finding the last index we will add one index and insert an element. Programming logic and working of insertion program in c at end C program to insert … Read more
C Program to calculate length of an array
In this tutorial, we will learn to write the C program to calculate the length of an array. There are multiple ways to write this program. In this tutorial, we will see two ways. Programming logic to calculate the length of array C program to calculate the length of integer array Output C program to … Read more
C program to reverse an Array in two ways
In this tutorial, we are going to learn to write a C program to reverse the Array. Here we are not just going to print the array in reverse order, but we will reverse the original array. You can check our program in C to print the array in reverse order. There are multiple ways … Read more
C program to print array in reverse Order
In this tutorial, we will learn to write a C program to print the given array in reverse order. To print the array in reverse order we will just start printing the array starting from the last index to index 0. Here we are basically not reversing the array, We have to just print the … Read more
C Program to sort character of string in descending order
In this tutorial we are going to learn writing C program to sort the characters of string in descending order. Here we will follow the insertion sort algorithm to sort the characters. You can check out c program to sort character of string in ascending order Program in C to sort the character of String … Read more