What is the difference between malloc() and calloc() function in c language?


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

Post New Answer

More C Interview Questions

1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision

9 Answers   HCL, Qualcomm,


a<<1 is equivalent to a) multiplying by 2 b) dividing by 2 c) adding 2 d)none of the above

2 Answers   HCL, NBN,


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

0 Answers  


How the c program is executed?

0 Answers  


what are # pragma staments?

0 Answers  






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,


Explain what happens if you free a pointer twice?

0 Answers  


How can I increase the allowable number of simultaneously open files?

1 Answers   ABC,


What is wrong in this statement? scanf(“%d”,whatnumber);

0 Answers  


how to generate the length of a string without using len funtion?

4 Answers  


A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market. Product W will appeal to female city dwellers. Product X will appeal to young females. Product Y will appeal to Male middle aged shoppers who do not live in cities. Product Z will appeal to all but older females.

2 Answers  


Differentiate between new and malloc(), delete and free() ?

0 Answers   iNautix,


Categories