Skip to content

Tag Archives: C Misc Programs

C Misc Programs

Here in this article, we have created a console application that will write into a file. This console application will work in the background by… Read More
Gamma Function in C++ is described as the factorial for complex and real numbers. This function is used to calculate the factorial on all complex… Read More
Given a string name, we have to find the initials of the name  Examples:  Input: Kamlesh Joshi Output: K J We take the first letter… Read More
Random floating numbers can be generated using 2 methods: Using rand() Using uniform real distribution 1. Use of rand() We can generate random integers with… Read More
Prerequisite: Chrono Library in C++ The task is to calculate the running time of a program in Microseconds in C++ Header file:   #include<chrono> The… Read More
In this article, we will see the time of the different countries. The calculation is based relative to Indian Time. Simple conversion is done between… Read More
Prerequisites:  Arrays in C/C++  Structure in C Using the structure pointer, we will implement a C program to create and print a database of students.… Read More
Given a string S representing a time in 24 hours format, with ‘_’ placed at positions of some digits, the task is to find the… Read More
Write a program to reverse a stack using recursion, without using any loop. Example:  Input: elements present in stack from top to bottom 1 2… Read More
Given an integer n which is the number of hours, the task is to convert it into minutes and seconds. Examples:  Input: 5 Output: Minutes =… Read More
Given two integers x and n, write a function to compute xn. We may assume that x and n are small and overflow doesn’t happen.… Read More
Given an array arr[] consisting of N integers, the task is to find the largest element in the given array using Dynamic Memory Allocation. Examples:… Read More
Given a character, check if it is a vowel or consonant. Vowels are ‘a’, ‘e’, ‘i’, ‘o’ and ‘u’. All other characters (‘b’, ‘c’, ‘d’,… Read More
Given a natural number n, print all distinct divisors of it. Examples: Input : n = 10 Output: 1 2 5 10 Input: n =… Read More
Given two numbers a and b as interval range, the task is to find the prime numbers in between this interval. Examples:  Input: a =… Read More

Start Your Coding Journey Now!