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
1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision
a<<1 is equivalent to a) multiplying by 2 b) dividing by 2 c) adding 2 d)none of the above
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
How the c program is executed?
what are # pragma staments?
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); } }
Explain what happens if you free a pointer twice?
How can I increase the allowable number of simultaneously open files?
What is wrong in this statement? scanf(“%d”,whatnumber);
how to generate the length of a string without using len funtion?
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.
Differentiate between new and malloc(), delete and free() ?