Latest Answer: Calloc:- #include void *calloc(size_t nelem, size_t elsize);The calloc() function allocates space for an array of nelem elements of size elsize. The space is initialized to zero. Malloc:#include void *malloc(size_t size);The malloc() function allocates ...
What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?
Latest Answer: Memory alignment is the restriction imposed on memory allocation in such a way that values associated with multibyte get assigned only at certain places of memory. Such Memory alignment though generally not very common issue in OOPS terminology as the ...
Latest Answer: The return type of the printf() function is 'int'. (lot of confusion surrounding the return type of printf -- correct answer is 'int') ...
Latest Answer: printf is the standart function in (c) programming language library for printing formatted output.egprintf writes the resulting string to the standard output(remember, Awk has only one output file).So, for example: printf("%sn","jellotHarold!")prints ...
Latest Answer: Map is associated type of container type defined in STL. Which store the pair of values as element as "Key" and "Value".Ex: Pair of elements like PersonName:IDno can be stored in maps asperson1 - 1001person2 - 1002person3 - 1003Here ...
Latest Answer: Whenever u want to derieve a class having multiple ancestors or base calsses u have use Multiple InheritanceIt can be done as followsclass A{- - - };class B{---};class C:public A,public B{---}; ...
Latest Answer: three debugging techniques: 1. Non-interactive 2. GNU gdb 3. dbx ...
Latest Answer: To reduce the final size of executable, remove any dead code, if there in the program (remove extra white spaces, extra commnets, extra tabs) and also use functions where ever possible, because it reduces the code and executable file size alot. ...
Latest Answer: I am giving below another example of code optimization you can follow for C++ program. As we all know prefix operators apply the operations of incrementing or decrementing as specified and the new value is stored. In case of postfix operator the operations ...
View page << Previous 8 9 10 11 [12] 13 14 15 16 17 Next >>

Go Top