What do you want to save?
Add Code snippet
New code examples in category C
-
Phoenix Logan 2022-03-15 07:20:11
undefined reference to `sqrt'
The math library must be linked in when building the executable. How to do this varies by environment, but in Linux/Unix, just add -lm to the command: gcc test.c -o test -lm The math library is named libm.so, and the -l command option assumes a lib pref... Add solution -
Awgiedawgie 2022-03-12 15:10:02
is c and c++ platform independent
In C, C++ the compiled code (compiler given code) is machine language code which is understandable only by the cureent operating system. Hence this compiled code can not be executed in another platform. Due to this reason these languages are consider... Add solution -
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
Best helpers
Ranking is empty