In C, malloc is used to reserve a predetermined size of memory.
void * malloc ( size_t size );
calloc is used to reserve a chunk of memory large enough to store num elements, each of a predetermined size.
void * calloc ( size_t num, size_t size );
To create a char array of size 10 you can do it in one of two ways:
char* mChars = malloc( 10 * sizeof(char) );
char* cChars = calloc( 10, sizeof(char) );
There is no concept of malloc or calloc in Java.
Unix is an operating system, Java is a language.
Rowset
difference between constant and static variables in java
Java or Java SE comes with the standard library, with all the crazy classes to make life easy. Java Core does not come with most of these classes, so that it is a lot smaller.
both are mobile operating syms but sybm is more faster than the java
They are different versions. Java 5 is newer than Java 2. Think of it like the difference between the Playstation 1 and the Playstation 3.
Java is object oriented, C is not...
kamina
kamina
Unix is an operating system, Java is a language.
Rowset
JAD-Java Application Description JAR-Java archive
java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.
Java doesn't have pointers. C++ has pointers.
Both are same
difference between constant and static variables in java
Windows is an operating system whereas Java is a programming language. They are entirely different.