Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336
How will you free the memory allocated by the following program? #include<stdio.h> #include<stdlib.h> #define MAXROW 3 #define MAXCOL 4 int main() { int p, i, j; p = (int ) malloc(MAXROW sizeof(int)); return 0; } ?->(Show Answer!)
Question Set

1. How will you free the memory allocated by the following program? #include<stdio.h> #include<stdlib.h> #define MAXROW 3 #define MAXCOL 4 int main() { int p, i, j; p = (int ) malloc(MAXROW sizeof(int)); return 0; }





Ask Your Doubts Here

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

Comments

Show Similar Question And Answers
QA->Correct sentences among the following are: ) The tea is too hot that I cannot drink (2) Work hard, lest you should miss the chance (3) Unless you study well, you will fail (4) Unless you study well, you will pass....
QA->The memory which is known as a volatile memory is:....
QA->Who said ‘Happiness is when what you think; what you say; and what you do are in harmony’?....
QA->If you have a Power point show you created and want to send using E-mail to another teacher you can add the show to your E-mail message as an______....
QA->Name the translatory program which translates the high level language into machine language before running the program?....
MCQ->Assume integer is 2 bytes wide. What will be the output of 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)); printf("%d, %d\n", sizeof(p), sizeof(p)); return 0; }....
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->How will you free the memory allocated by the following program? #include<stdio.h> #include<stdlib.h> #define MAXROW 3 #define MAXCOL 4 int main() { int p, i, j; p = (int ) malloc(MAXROW sizeof(int)); return 0; }....
MCQ->What will be the output of the program in 16-bit platform (under DOS)? #include<stdio.h> int main() { struct node { int data; struct node link; }; struct node p, q; p = (struct node ) malloc(sizeof(struct node)); q = (struct node ) malloc(sizeof(struct node)); printf("%d, %d\n", sizeof(p), sizeof(q)); return 0; }....
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