Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336
malloc() returns a NULL if it fails to allocate the requested memory. ?->(Show Answer!)
Question Set

1. malloc() returns a NULL if it fails to allocate the requested memory.



Ask Your Doubts Here

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

Comments

Show Similar Question And Answers
QA->In C language ----- is used to allocate a block of memory.....
QA->The memory which is known as a volatile memory is:....
QA->Null and void....
QA->A person who fails in the performance of his duty or commits an offence....
QA->Under the Right to Information Act the maximum penalty that can be imposed on an officer who fails to supply the information sought for is rupees....
MCQ->malloc() returns a NULL if it fails to allocate the requested memory.....
MCQ->Which of the following statement is correct about the program given below? #include<iostream.h> #include<string.h> #include<malloc.h> class BixString { char txtName[20]; public: BixString(char txtTemp = NULL) { if(txtTemp != NULL) strcpy(txtName, txtTemp); } void Display(void) { cout<<txtName; } }; int main() { char txtName = (char)malloc(10); strcpy(txtName, "IndiaBIX"); txtName = 48; BixString objTemp(txtName); cout<< sizeof(txtName); 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->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->Point out the correct statement which correctly free the memory pointed to by 's' and 'p' in the following program? #include<stdio.h> #include<stdlib.h> int main() { struct ex { int i; float j; char s }; struct ex p; p = (struct ex )malloc(sizeof(struct ex)); p->s = (char)malloc(20); return 0; }....
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