How can you dynamically allocate memory in C?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
Memory can be dynamically allocated using functions like malloc(), calloc(), realloc(), and freed using free().
| Is This Answer Correct ? | 0 Yes | 0 No |
Memory can be dynamically allocated using functions like malloc(), calloc(), realloc(), and freed using free().
| Is This Answer Correct ? | 0 Yes | 0 No |
main() { printf("hello"); fork(); }
What is the use of the sizeof operator?
In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }
How does the C program handle segmentation faults?
What does #pragma once mean?
We can draw a box in cprogram by using only one printf();& without using graphic.h header file?
Is there sort function in c?
What are loops in c?
What is indirection? How many levels of pointers can you have?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What is include directive in c?
write a program to sort the elements in a given array in c language