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 |
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
C program to read the integer and calculate sum and average using single dimensional array
What is the use of getch ()?
write a program to swap two numbers without using temporary variable?
main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }
write a C code to reverse a string using a recursive function, without swapping or using an extra memory.
9 Answers Motorola, TCS, Wipro,
write a program to find the largest and second largest integer from an array
What is the difference between fread buffer() and fwrite buffer()?
If fflush wont work, what can I use to flush input?
class foo { public: static int func(const char*& p) const; }; This is illegal, why?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon