What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-21 16:03:03
Selection sort in c with console input with assending order
#include<stdio.h> int main(){ /* Here i & j for loop counters, temp for swapping, * count for total number of elements, number[] to * store the input numbers in array. You can increase * or decrease the size of number array as per... Add solution -
Other 2021-09-21 14:57:03
how to calculate the execution time of a program in c
#include <time.h> clock_t begin = clock(); /* here, do your time-consuming job */ clock_t end = clock(); double time_spent = (double)(end - begin) / CLOCKS_PER_SEC; printf("%f\n", time_spent); Add solution -
Other 2021-09-21 04:51:03
grpc server
flag.Parse() lis, err := net.Listen("tcp", fmt.Sprintf("localhost:%d", *port)) if err != nil { log.Fatalf("failed to listen: %v", err) } var opts []grpc.ServerOption ... grpcServer := grpc.NewServer(opts...) pb.RegisterRout... Add solution -
Other 2021-09-21 04:14:03
how to measure execution time c openmp
#include <stdio.h> #include <omp.h> int main(){ double itime, ftime, exec_time; itime = omp_get_wtime(); // Required code for which execution time has to be found ftime = omp_get_wtime(); exec_time = ftime - itime; ... Add solution -
C++ 2021-09-21 01:21:02
queue using linked list c++
/* * Program : Queue using linked list * Language : C */ #include<stdio.h> #include<stdlib.h> struct node { int data; struct node *next; }; struct node *front = NULL, *rear = NULL; void enqueue(int val) { struct node *newNo... Add solution -
C 2021-09-20 17:05:01
structure and function in c
#include <stdio.h> #include <string.h> struct student { int id; char name[20]; &nbs... Add solution -
C 2021-09-20 14:45:02
binary to hexadecimal in c
#include <math.h> #include <stdio.h> int convert(long long n); int main() { long long n; printf("Enter a binary number: "); scanf("%lld", &n); printf("%lld in binary = %d in decimal", n, conver... Add solution -
Other 2021-09-20 14:06:02
Remove all the vowels from a given string using pointers concept
#include<stdio.h>#include<stdlib.h>#include<string.h>#define TRUE 1#define FALSE 0 int check_vowel(char); main(){ char string[100], *temp, *pointer, ch, *start; printf("Enter a string\n"); gets(string); temp = string;... Add solution