What do you want to save?
Add Code snippet
New code examples in category C
-
Phoenix Logan 2022-03-12 05:20:02
reverse
// Iterative C++ program to reverse an array #include <bits/stdc++.h> using namespace std; /* Function to reverse arr[] from start to end*/ void rvereseArray(int arr[], int start, int end) { while (start < end) { int temp = arr[start]; arr... Add solution -
Krish 2022-03-09 07:40:03
c float to int
float percentage; percentage = (float)number/total * 100; Add solution -
Phoenix Logan 2022-03-08 13:10:23
defining typedef struct in c
#include <stdio.h> #include <string.h> typedef struct Books { char title[50]; char author[50]; char subject[100]; int book_id; } Book; int main( ) { Book book; strcpy( book.title, "C Programming"); strcpy(... Add solution -
Awgiedawgie 2022-03-07 10:00:01
Linked List Program in C
typedef struct node{ int value; //this is the value the node stores struct node *next; //this is the node the current node points to. this is how the nodes link }node; node *createNode(int val){ node *newNode = malloc(sizeof(node)); newNo... Add solution -
-
Awgiedawgie 2022-03-07 05:20:26
c++ measure time in microseconds
auto start = std::chrono::high_resolution_clock::now(); ... auto elapsed = std::chrono::high_resolution_clock::now() - start; long long microseconds = std::chrono::duration_cast<std::chrono::microseconds>(elapsed).count(); Add solution
Best helpers
Ljs
+5
Dr.khan
+5
Volker Kamin
+5
Akash Patel
+5
Bill Reason
+5
Sultan
+5
Rednryt
+5
Feefee
+5
GuitarFan
+5
Emdms
+5
Vlk
+5
Erwin
+5
Hrishioa
+5
Rpeinhardt
+5
Boehmi
+5
Bobby J
+5
Terry-s
+5
Mururoa
+5