What will happen when freeing memory twice
Answers were Sorted based on User's Feedback
Answer / veeresh
Memory is the very valuable, if we leave memory freely then
memory will be wasted and cant be used.
Is This Answer Correct ? | 0 Yes | 3 No |
what will be the result of the following program ? char *gxxx() { static char xxx[1024]; return xxx; } main() { char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); } a) The string is : string b) The string is :Oldstring c) Run time error/Core dump d) Syntax error during compilation e) None of these
write a program fibonacci series and palindrome program in c
0 Answers Aditi Placement Service,
What is the purpose of clrscr () printf () and getch ()?
What is cohesion in c?
What is the use of the restrict keyword?
what is diffrence between string and character array?
what is the use of a array in c
write a program to copy the string using switch case?
main() { printf("hello%d",print("QUARK test?")); }
What is meant by initialization and how we initialize a variable?
What is the explanation for modular programming?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions