Thread: New TO C!!!

  1. #1

    Talking New TO C!!!

    is there anyone here to help me to understand all this library and what's purpose of each one of it?I'm just started to learn c.

    #include <stdio.h>
    #include <string.h>=

    #include <fcntl.h>
    #include <sys/types.h>
    #include <sys/stat.h>=

    #include <dirent.h>=

  2. #2


    i'm asking help here.don't u just give few comment only.
    i wanna full explanation,ok
    is this the board who wants to help ppl?

  3. #3
    Registered User
    Join Date
    Aug 2002
    The answer you received was intended to help but it expected a little work on your part.
    Anyway, I'm not a raw beginner but I'm no expert either. So I'll only attempt to give you a short example.

    #include <stdio.h>
    int main(void)
      printf("Hello World!");
      return 0;
    the function printf() in the above example will print "Hello World!" to your screen. The stdio.h is a header file which allows you access to this pre-written function, without you having to write the code needed to print to screen. There are many other functions accessed using this header file and the same applies to the other header files you have listed.
    My explanation may have some flaws in it so I'm sure there will be someone out there who'll correct me if this is the case.
    Hope this is of some help.


  4. #4

    Unhappy Ok

    hi hobo,
    in case of the program that u posted it..
    y there is such (void) besides the main? some answer pls,

  5. #5
    Registered User
    Join Date
    Oct 2002
    xman, please read a book on learning C before asking such simple questions. The questions you're asking will be answered in a book about C and by searching on google. When you run into some more specific problems then come here and ask.

    Yes, this board is about helping but the members here won't hold your hand and explain things that are easily researchable and explained through the Internet or by a book.
    Wandering aimlessly through C.....

Popular pages Recent additions subscribe to a feed