Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336
If malloc() successfully allocates memory it returns the number of bytes it has allocated. ?->(Show Answer!)
Question Set

1. If malloc() successfully allocates memory it returns the number of bytes it has allocated.



Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.02 pm
    Syntax: void *malloc(size_t size);

    The malloc() function shall allocate unused space for an object whose size in bytes is specified by size and whose value is unspecified.

    The order and contiguity of storage allocated by successive calls to malloc() is unspecified. The pointer returned if the allocation succeeds shall be suitably aligned so that it may be assigned to a pointer to any type of object and then used to access such an object in the space allocated (until the space is explicitly freed or reallocated). Each such allocation shall yield a pointer to an object disjoint from any other object. The pointer returned points to the start (lowest byte address) of the allocated space. If the space cannot be allocated, a null pointer shall be returned. If the size of the space requested is 0, the behavior is implementation-defined: the value returned shall be either a null pointer or a unique pointer.
Show Similar Question And Answers
QA->The memory which is known as a volatile memory is:....
QA->A man has equal number of one rupee, five rupee and ten rupee notes with him. If he has Rs. 480 with him, the number of one rupee note is :....
QA->Raju has equal number of one rupee, five rupee and ten rupee notes with him. If he has Rs. 480 with him, what is the number of one rupee note?....
QA->By whom are the portfolios allocated to the ministers?....
QA->Which method of keyboard operation involves typing by sense of location, memorizing of the keyboard and each finger operating on the keys allocated to it?....
MCQ->If malloc() successfully allocates memory it returns the number of bytes it has allocated.....
MCQ->malloc() returns a float pointer if memory is allocated for storing float's and a double pointer if memory is allocated for storing double's.....
MCQ->Assume integer is 2 bytes wide. How many bytes will be allocated for the following code? #include<stdio.h> #include<stdlib.h> #define MAXROW 3 #define MAXCOL 4 int main() { int (p)[MAXCOL]; p = (int () [MAXCOL])malloc(MAXROW sizeof(p)); return 0; }....
MCQ->Which two statements are true about comparing two instances of the same class, given that the equals() and hashCode() methods have been properly overridden? If the equals() method returns true, the hashCode() comparison == must return true. If the equals() method returns false, the hashCode() comparison != must return true. If the hashCode() comparison == returns true, the equals() method must return true. If the hashCode() comparison == returns true, the equals() method might return true.....
MCQ->Suppose a microprocessor has memory locations from 0000 to 3FFF, each storing I byte. How many bytes the memory can storing I bytes the memory can store?....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution