Which of the following header files must necessarily be included to use dynamic memory allocation functions?
Answer: A
stdlib.h is a header file which stands for the standard library. It consists of the declaration for dynamic memory allocation functions such as malloc(), calloc(), realloc() and free.
Enter details here
What will be the output of the program?
#include
int main()
{
typedef float f;
static f *fptr;
float fval = 90;
fptr = &fval;
printf("%f\n", *fptr);
return 0;
}
Answer: C
No answer description available for this question.
Enter details here
typedef's have the advantage that they obey scope rules, that is they can be declared local to a function or a block whereas #define's always have a global effect.
Answer: A
No answer description available for this question.
Enter details here