What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Why functions are used in c?

0 Answers  


Explain argument and its types.

0 Answers  


Write a program to swap two numbers without using third variable?

0 Answers  


Explain what are header files and explain what are its uses in c programming?

0 Answers  


Why static is used in c?

0 Answers  






What is Dynamic Initialization.

3 Answers  


What is the difference between %d and %*d in C

3 Answers  


write a program to find the largest and second largest integer from an array

2 Answers   Value Labs,


fn f(x) { if(x<=0) return; else f(x-1)+x; }

5 Answers   HCL,


pointer_variable=(typecasting datatype*)malloc(sizeof(datatype)); This is the syntax for malloc?Please explain this,how it work with an example?

2 Answers   eClerx, Excel, kenexa,


Explain data types & how many data types supported by c?

0 Answers  


pascal triangle program

2 Answers  


Categories