How can you dynamically allocate memory in C?

Answers were Sorted based on User's Feedback



How can you dynamically allocate memory in C?..

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

How can you dynamically allocate memory in C?..

Answer / hr@tgksolutions.com

Memory can be dynamically allocated using functions like malloc(), calloc(), realloc(), and freed using free().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Write a C program in Fibonacci series.

0 Answers   iNautix,


what is unsigened char and what is the difference from char

2 Answers  


Describe dynamic data structure in c programming language?

0 Answers  


what is object oriental programing?

1 Answers  


How is pointer initialized in c?

0 Answers  






code for reverse alternate words from astring

1 Answers   IBM,


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

0 Answers   Google,


Differentiate between the = symbol and == symbol?

0 Answers  


What are 3 types of structures?

0 Answers  


in which language c language is written?

2 Answers  


Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +

1 Answers  


What is oops c?

0 Answers  


Categories