What should malloc() do?


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

Post New Answer

More C Interview Questions

we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?

2 Answers  


write a program to add two numbers of any size.....(remember any size)

1 Answers  


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

0 Answers  


Can the size of an array be declared at runtime?

0 Answers  


A woman had somany gloves and hats 22 red,34 blue, 45 white...there was power cut and she took a glove and how many gloves shud she take so that she gets a pair of glove fr each color??

3 Answers   TCS,


Write a C program where input is: "My name is xyz". output is: "xyz is name My".

1 Answers   TCS,


Explain what is a 'locale'?

0 Answers  


How can you determine the size of an allocated portion of memory?

0 Answers   Aspire, Infogain,


what is difference between #include<stdio.h> and #include"stdio.h"

4 Answers  


int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

10 Answers   Wipro,


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

0 Answers   HCL,


What are dangling pointers in c?

0 Answers  


Categories