Author name: admin

In which of the following languages is function overloading not possible?

In which of the following languages is function overloading not possible? a) C b) C++ c) Java d) Python Answer: a) C Explanation: Function overloading, which allows multiple functions with the same name but different parameters, is not supported in C. This feature is available in languages like C++, Java, and Python, where the compiler […]

In which of the following languages is function overloading not possible? Read More »

Which header file is used for mathematical functions in C?

Which header file is used for mathematical functions in C? a) stdlib.h b) math.h c) string.h d) stdio.h Answer: b) math.h Explanation: The math.h header file in C is used to include mathematical functions such as sin(), cos(), sqrt(), pow(), and many others. These functions are essential for performing complex mathematical calculations in C programs.

Which header file is used for mathematical functions in C? Read More »

Which library function is used to allocate memory dynamically in C?

Which library function is used to allocate memory dynamically in C? a) malloc() b) scanf() c) free() d) printf() Answer: a) malloc() Explanation: The malloc() function in C is used to allocate memory dynamically. It allocates a specified number of bytes and returns a pointer to the allocated memory. For example, int *ptr = (int

Which library function is used to allocate memory dynamically in C? Read More »

Scroll to Top