pick out the odd one out of the following
a.malloc()
b.calloc()
c.free()
d.realloc()
Answers were Sorted based on User's Feedback
Answer / manishsoni
here malloc(),calloc(),realloc)() are the memory allocation
function after allocation of memory free is used to freed
the memory which is allocated by the above function.
so the free is odd term.
| Is This Answer Correct ? | 13 Yes | 3 No |
C program to find all possible outcomes of a dice?
Write a C program where input is: "My name is xyz". output is: "xyz is name My".
write a program in c language that uses function to locate and return the smallest and largest integers in an array,number and their position in the array. it should also find and return the range of the numbers , that is , the difference between the largest number and the smallest.
What are the rules for identifiers in c?
1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision
is compiler do read the data line by line or not. ??
6 Answers LG Soft, Satyam, Tech Mahindra,
Which of the following are valid "include" formats? A)#include and #include[file.h] B)#include (file.h) and #include C)#include [file.h] and #include "file.h" D)#include <file.h> and #include "file.h"
Develop a program that computes the new price of an item. The program should receive a character variable colour and a double precision floating-point variable price from the user. Discount rate is determined based on the colour of the discount sticker, as shown in the following table. An error message should be printed if an invalid colour has been entered
What is the difference between typedef struct and struct?
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
5 Answers Vector, Vector Solutions,
Write a program to generate random numbers in c?
What should malloc(0) do?