What do you want to save?
Add Code snippet
New code examples
-
-
Java 2022-02-27 14:30:01
java type casting
Primitive Type casting and Reference Type casting PRIMITIVE CASTING: implicit casting (casting smaller type to larger int a = 100; double c = a;) explicit casting (casting larger to smaller byte b = (byte) a; REFERENCE CASTING: upcasting - implicitl... Add solution -
Javascript 2022-02-22 00:05:02
+=
>>> a = 10 >>> a += 5 >>> a 15 Add solution -
C++ 2022-02-02 23:00:41
gcd of two numbers c++
// gcd function definition below: int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } int a = 105, b = 30; cout<<"GCD of "<< a <<" and "<< b <<&quo... Add solution -
Javascript 2022-01-22 17:12:14
shallow copy vs deep copy js
// The '=' operator in javascript can serve the purpose of shallow vs // deep copy. // The '=' operator in javascript will assign deep copy to primitive // data types. For example: let a = 10; let b = a; b = 4; console.log(a); // Output: 10 console.log(... Add solution
Best helpers
Oti
+5
Elai Mateo
+5
Arnav Bose
+5
Thepace
+5
Nick Vaccaro
+5
Matt2507864
+5
Rodrigorgs
+5
Waldrumpus
+5
RoToRa
+5
Newbie
+5
Mostafa 36a2
+5
Amalloy
+5
Auntkym
+5
Babak
+5
Naigel
+5
Piquet
+5
J. Marks
+5
Jim Mourgos
+5
Jeff Sours
+5
Ohhh
+5
Rev1.0
+5
Catimann
+5
Tania Smith
+5
A10ciod
+5
Holyeyeolo
+5
TheShade
+5