this is pench.i have finished my psot gradution(MCA) in S.K.University.i am new to this group.plz help me if post any queris in forum.
1. what is the difference between New and Malloc or Calloc in C
[QUOTE=dubeyprateek]new actually calls malloc internally[/QUOTE]Maybe. [quote]18.4.1 Storage allocation and deallocation [lib.new.delete] 220.127.116.11 Single-object forms [lib.new.delete.single] [INDENT][INLINECODE]void* operator new(std::size_t size) throw(std::bad_alloc);[/INLINECODE][/INDENT] 1 [B]Effects:[/B] The [I]allocation function[/I] (18.104.22.168) called by a [I]new-expression[/I] (5.3.4) to allocate [I]size[/I] bytes of storage suitably aligned to represent any object of that size. 2 [B]Replaceable:[/B] a C++ … Read More