Persistent
Company
Programming
Program
when you want to use
-printf() scanf()
-log() abs() pow()
-clrscr() getch() terminate()
and your program restrictions are such that you have to use only 1 header file
Is it Possible......if yes which header file will you use....
How you will do it?
Read Solution (Total 6)
-
- math.h
because if we do not include basic libraries it automatically redirect it there but to use math.h function we have to use it - 10 years agoHelpfull: Yes(17) No(0)
- create your own header file which redirect you to all the other header files which are required in order to do the same mentioned above.
- 9 years agoHelpfull: Yes(5) No(3)
- Just make the program with math.h and use all the function and then save the program and then compile the program it will run without any error.
- 9 years agoHelpfull: Yes(3) No(0)
- The answer is no. it is not possible since function like printf() scanf() are defined in stdio.h header file where as all math related functions like log() abs() and pow() are defined in math.h header file and clrscr() function in conio.h header file of C.
- 9 years agoHelpfull: Yes(2) No(1)
- no need to give even one library the compiler shows no error.
- 9 years agoHelpfull: Yes(1) No(1)
- stdlib.h it includes all functions mentioned
- 9 years agoHelpfull: Yes(0) No(0)
Persistent Other Question