can we make program without header files?

Home Forums C Programming can we make program without header files?

This topic contains 3 replies, has 4 voices, and was last updated by  Anonymous 5 years, 4 months ago.

  • Author
    Posts
  • #2245

    LouanneT01
    Member

    hi,
    i am prateek…..i have read in a book that header files basically contains the prototypes and return types of the
    pre defined functions.so if we try to define the return types of the pre defined function.
    then is it possible to do it without using any header file?
    plz do reply if u know any program without header files…..

  • #3645

    You could do this if you choose to write everything from scratch ( you will need to write your own input / output functions in assembly language for DOS I’m not sure if you can do this for Windows , though ). I’ll see if I can write an example latter…..

  • #3646

    Anonymous

    no we cant make program without header files because for display and taking input we use stdio.h and conio.h which is really required. but if u r doing program in Turbo C 3.0 or higher version then these 2 header file is not required because it automatically adds the header files to it.
    if u want to use any header file except these two u have to add library files…….

  • #3647

    Anonymous

    it possible but it also depends upon compiler, means if u are using turboc2 compiler then it is possible other wise u have to use
    .c after every file name. ex filename.c that there after no need to use header file in C programming. But specially want to say that use of header file is good habit some time it is required.

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble