-
Anybody tried running C Program without the use of the header file declaration? If you are using Turbo C compiler, please let me know what is the output. Run any random program! Is there any chance of not using these header files and run the program error free? Want to learn!0
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a
member of our community. Consider creating an
account or login.
Replies
-
Member • Jan 29, 2015
Header-files are included to do the messy work for you, You can avoid header file declarations if u are going to do it by yourself.Koushal PatelAnybody tried running C Program without the use of the header file declaration? If you are using Turbo C compiler, please let me know what is the output. Run any random program! Is there any chance of not using these header files and run the program error free? Want to learn!
For example, if u want to use clrscr() for clearing the screen,but don't want to include <conio.h>, u can use system call directly using the function system("cls");
inside your program. 😀Are you sure? This action cannot be undone. -
Member • Apr 7, 2015
What are the other possible system calls that can make our life easier? I am asking for basic systems calls only.rahul69Header-files are included to do the messy work for you, You can avoid header file declarations if u are going to do it by yourself.
For example, if u want to use clrscr() for clearing the screen,but don't want to include <conio.h>, u can use system call directly using the function system("cls");
inside your program. 😀Are you sure? This action cannot be undone. -
Member • Apr 8, 2015
By system call he means, the command prompt commands as far as I understand the post. To execute those commands you anyway need to require or include stdlib.h header as system() is defined in that headerproffyWhat are the other possible system calls that can make our life easier? I am asking for basic systems calls only.Are you sure? This action cannot be undone. -
Member • Apr 19, 2015
You are correct. But it was just an abstract example to emphasize on the concept rather than the actual underlying process of conversion, explaining which would have added to the confusion (with the details of macro implementations etc.)Vishal0203By system call he means, the command prompt commands as far as I understand the post. To execute those commands you anyway need to require or include stdlib.h header as system() is defined in that header
You can call any command which can be used in our command prompt, eg:proffyWhat are the other possible system calls that can make our life easier? I am asking for basic systems calls only.
echo, ping etc.Are you sure? This action cannot be undone. -
Member • May 2, 2015
YOU CAN RUN PROGRAMS WITHOU USING <CONIO.H>.
LIKE THIS:-
[HASHTAG]#INCLUDE[/HASHTAG]<STDIO.H>
INT MAIN()
{
PRINTF("LIKE THIS");
}
and many more!!!!!!!!!!!!!1Are you sure? This action cannot be undone.