What do you want to save?
Add Code snippet
New code examples
-
-
Java 2021-09-11 22:17:02
call by value and call y refrence in java
/*call by refrence doesnot change the value of parameters(a and b ) in main function but where as passing the values by refrence changes the values of and b in the main function */ //CALL BY REFERENCE public class JavaTester { public static void main(... Add solution -
Other 2021-09-11 21:06:01
c share variable between forks
#include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> static int *glob_var; int main(void) { glob_var = mmap(NULL, sizeof *glob_var, PROT_REA... Add solution -
Java 2021-09-11 11:14:03
java bucket sort
public static int[] bucketSort(int[] a) { Queue<Integer>[] buckets = fillBuckets(a); int[] sorted = readBuckets(buckets); return sorted; } public static Queue<Integer>[] fillBuckets(int[] array) { if(array.length == 0){ Queue<I... Add solution -
C# 2021-09-11 06:25:04
getter setter c#
//private Variable int _x; public int x { get { return _x; } //getter -> returns value of private variable _x set { _x = value; } // setter -> sets value of _x to passed argument (value) } //Work with x as it would be a normal public field x = 20... Add solution
Best helpers
Cob
+5
Nick Rowe
+5
V0ight
+5
Jun Czyrka
+5
AppleFix88
+5
Kapil
+5
Oddthinking
+5
Arttu
+5
Geoffre14
+5
Lvoyster
+5
BuckNaked69
+5
S9527
+5