Java by PC

Java by PC

Share

08/06/2016

Can you initialize an instance data member before the run of constructor while creating an object? :O Post your answers below in the comment section...

19/06/2014

Difference between malloc and calloc?

There are two differences between these functions:-
-->First, malloc() takes a single argument (the amount of memory to allocate in bytes), while calloc() needs two arguments (the number of variables to allocate in memory, and the size in bytes of a single variable).
-->Secondly, malloc() does not initialize the memory allocated, while calloc() initializes all bytes of the allocated memory block to zero.

Function Description
malloc -- allocates the specified number of bytes
realloc -- increases or decreases the size of the specified block of memory. Reallocates it if needed
calloc -- allocates the specified number of bytes and initializes them to zero
free --- releases the specified block of memory back to the system

Want your school to be the top-listed School/college in Pune?
Click here to claim your Sponsored Listing.

Category

Website

Address


Dutta Mandir Road
Pune

Opening Hours

Monday 9am - 5pm
Tuesday 9am - 5pm
Wednesday 9am - 5pm
Thursday 9am - 5pm
Friday 9am - 5pm
Saturday 9am - 5pm
Sunday 9am - 5pm