What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-11-18 14:41:15
increase the speed of cin and cout in c++
#include <iostream> int main(int argc, char **argv) { int parity = 0; int x; //you can use scanf , printf alternatively for speed std::ios::sync_with_stdio(false);// this increases the speed of i/o while (std::cin >> x) parity ^... Add solution -
Other 2021-11-16 06:53:08
Clear RAM Cache and Swap Space.
# echo 3 > /proc/sys/vm/drop_caches && swapoff -a && swapon -a && printf '\n%s\n' 'Ram-cache and Swap Cleared' OR $ su -c "echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf... Add solution -
C 2021-11-13 14:28:13
ask the user if they would like to do something again in C
#include<stdio.h> int main(){ int x, y, sum; char ch; print: printf ("Enter the first number:"); scanf ("%d",&x); printf ("Enter the second number:"); scanf ("%d",&y); sum=x+y; ... Add solution -
C 2021-11-13 08:30:19
printf("%5.1f\n", x);
#include<stdio.h> int main() { float a=3.15529; printf("%2.1f\n", a); return 0; } [A]. 3.00 [B]. 3.15 [C]. 3.2 @ [D]. 3 Answer: Option C Explanation: float a=3.15529; The variable a is declared as an float data type and i... Add solution -
Other 2021-11-09 08:20:08
printing hello world without using header file in c
//hello guys here i am going to print hello world without using header file stdio.h int printf(const char* string,...); int main() { printf("hello world"); } /*you must know that a header file just contains the declarations ,so i have declared... Add solution -
Other 2021-11-09 02:07:11
How do I tell which command has the longest manual on my system?
$ find /usr/share/man/ -type f -exec ls -S {} + 2>/dev/null | head | while \ read -r file; do printf "%-40s" "$file"; \ man "$file" 2>/dev/null | wc -lwm; done | sort -nrk 4 Add solution -
Shell/Bash 2021-11-06 13:50:17
how to pull private docker image in helm charts
# values.yaml imageCredentials: name: credentials-name registry: private-docker-registry (eg: https://index.docker.io/v1/) username: user password: pass replicaCount: 1 application: name: votingApp group: app container: image: votingA... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5