What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-01-31 20:22:02
write a progam to take the hour munite and second components of two times of a day and find out their difference (assume the latest time is given first)
#include <stdio.h> struct TIME { int seconds; int minutes; int hours; }; void differenceBetweenTimePeriod(struct TIME t1, struct TIME t2, struct TIME *diff); int main() { ... Add solution -
C++ 2022-01-30 20:50:09
Optimal Page Replacement Algorithm
#include<stdio.h> int main() { int no_of_frames, no_of_pages, frames[10], pages[30], temp[10], flag1, flag2, flag3, i, j, k, pos, max, faults = 0; printf("Enter number of frames: "); ... Add solution -
C++ 2022-01-30 17:51:12
Write a program to print following pattern; 1 1 2 1 2 3 1 2 3 4
#include <stdio.h> int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) { printf("%d ", j); ... Add solution -
C 2022-01-30 15:10:39
power function in c without pow
// power function in c without pow #include <stdio.h> double mypow(double base, double power); int main() { int base, exponent; printf("Enter Base: "); scanf("%d", &base); printf("Enter Exponent: "); scan... Add solution -
Other 2022-01-29 06:46:55
queue using c
// Queue implementation in C #include <stdio.h> #define SIZE 5 void enQueue(int); void deQueue(); void display(); int items[SIZE], front = -1, rear = -1; int main() { //deQueue is not possible on empty queue deQueue(); //enQueue 5 element... Add solution -
Other 2022-01-29 04:07:09
how to insert an element from an array
int main() { int array[100], position, c, n, value; printf("Enter number of elements in array\n"); scanf("%d", &n); printf("Enter %d elements\n", n); for (c = 0; c < n; c++) scanf("%d"... Add solution
Best helpers
Zulu
+5
Calista
+5
Shivam Patel
+5
MGA
+5
Carla Walker
+5
Brad Thomas
+5
DJaye
+5
Umesh
+5
Mai0003c
+5
Pc1oad1etter
+5
Loronzo
+5
Vermilions
+5
Ian Goldby
+5
Elenaher
+5
Nerrolken
+5
OiciTrap
+5
RLHanout
+5
Hassaan
+5
JBeez
+5