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

#include <stdio.h> int main() { if ("X" <"x") printf("X smaller than x "); } my question is whats the mistake in this program? find it and please tell me..

3 Answers  


why the execution starts from main function

9 Answers  


HOW TO SWAP TWO NOS IN ONE STEP?

16 Answers   Satyam,


how to count no of words,characters,lines in a paragraph.

0 Answers  


in b=6.6/a+(2*a+(3*c)/a*d)/(2/n); which operation will be performed first a) 6.6/a b) 2*a c) 3*c d) 2/n

1 Answers  






program to find middle element of linklist?

1 Answers   Huawei,


Which is the best sort method for library management?

1 Answers   Microsoft,


What is a memory leak in structures? How can we rectify that?

2 Answers  


Why is event driven programming or procedural programming, better within specific scenario?

0 Answers   Wipro,


let's take a code struct FAQ { int a; char b; float c; double d; int a[10]; }*temp; now explain me how the memory will be allocated for the structure FAQ and what address will be in the structure pointer (temp)....................

8 Answers  


Are pointers integers in c?

0 Answers  


main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }

27 Answers   Advent Global Solutions, CitiGroup, Valeo Lighting Systems India Private Limited, Vishal Transformers, Wipro, Zencer,


Categories