Top "Primitive" questions

A primitive type is a data type provided by a programming language as a basic building block.

Java comparing Arrays

I have two Arrays of unknown type...is there a way to check the elements are the same: public static …

java arrays primitive
Why doesn't Kotlin allow to use lateinit with primitive types?

In the Kotlin language we, by default, have to initialize each variable when it is introduced. To avoid this, the …

initialization kotlin primitive
Passing primitives to an OCMock's stub

I'm learning how to use OCMock to test my iPhone's project and I have this scenario: a HeightMap class with …

xcode primitive ocmock
Map alternative for primitive values

I did some profiling on my application and one of the results turned out that about 18% of memory on the …

java java-8 primitive
Initialize array of primitives

I am wondering, What's exactly the difference between these two ways of initializing an array of primitives: int[] arr1 = new …

java arrays primitive
Purpose of byte type in Java

I read this line in the Java tutorial: byte: The byte data type is an 8-bit signed two's complement integer. …

java byte primitive
How many primitives does it take to build a LISP machine? Ten, seven or five?

On this site they say there are 10 LISP primitives. The primitives are: atom, quote, eq, car, cdr, cons, cond, lambda, …

clojure lisp scheme common-lisp primitive
Draw a polygon in C

i need to draw a polygon of "n" sides given 2 points (the center and 1 of his vertex) just that i …

c graphics polygon primitive atan2
Are there primitive types in Ruby?

I'm a Java developer who is just starting to learn Ruby. Does Ruby have any primitive types? I can't seem …

ruby primitive
Cross-platform primitive data types in C++

Unlike Java or C#, primitive data types in C++ can vary in size depending on the platform. For example, int …

c++ cross-platform portability primitive