What do you want to save?
Add Code snippet
New code examples
-
C 2022-03-05 12:15:01
what is the usage of extern in c
#include <stdio.h> extern int x = 32; int b = 8; int main() { auto int a = 28; extern int b; printf("The value of auto variable : %d\n", a); printf("The value of extern variables x a... Add solution -
Shell/Bash 2022-03-04 21:25:04
pattern matching alias linux
command_not_found_handle() { local cmd_str # change the argument-list array back to a string printf -v cmd_str '%q ' "$@" # process that string: case $cmd_str in "git@"*".git") eval "git clone $cmd_str&qu... Add solution -
TypeScript 2022-03-03 08:25:04
remove products in checkout page woocommerce
/** * Allows to remove products in checkout page. * * @param string $product_name * @param array $cart_item * @param string $cart_item_key * @return string */ function lionplugins_woocommerce_checkout_remove_item( $product_name, $cart_item, $ca... Add solution -
C 2022-03-03 05:50:38
how to compress a file in c
#include <stdio.h> #include <string.h> //comp() void Compress(unsigned char *szOut, const char *szMessage) { unsigned long long nBuffer = 0; //This is enough to store 8 uncompressed characters or 9 compressed. We will only use 8 tho. char n... Add solution -
Python 2022-03-03 00:45:07
c Pythagorean triples
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; printf("TERNE PITAGORICHE!\n\nPrimo numero: "); scanf("%d", &a); printf("Secondo numero: "); scanf("%d", &b); printf(&... Add solution -
Other 2022-03-02 21:50:14
Write a program to show swap of two numbers without using third variable.
#include<stdio.h> int main() { int a=10, b=20; printf("Before swap a=%d b=%d",a,b); a=a+b;//a=30 (10+20) b=a-b;//b=10 (30-20) a=a-b;//a=20 (30-10) printf("\nAfter swap a=%d b=%d",a,b); retu... Add solution -
C 2022-03-02 21:05:43
c program from decimal to binary
#include <stdio.h> #include <math.h> #include <stdlib.h> #define D 10 int main() { int i, n, k, vet[D]; printf("FROM DECIMALS TO BINARIES\nEnter decimal: "); scanf("%d", &n); k = 0; while (n != ... Add solution -
TypeScript 2022-03-02 12:45:05
sum of diagonal elements of a matrix in c
#include <stdio.h> void main () { int i,j,matrix[10][10],m,n,sum=0; printf("Enter number of rows of matrix : "); scanf("%d", &m); printf("Enter number of columns of matrix : "); scanf("%d... Add solution
Best helpers
Daniel Cook
+5
Czlsws
+5
Mick Daw
+5
Shahruz Raad
+5
Horse
+5
Csandreas1
+5
SOUMEN
+5
Vy32
+5
Anugram
+5
ImMathan
+5
Joyo
+5
Huggy Buggy
+5