Results 1 to 6 of 6

Thread: Header file as #include <stdio.c>

  1. #1
    Junior Member
    Join Date
    Aug 2007
    Answers
    1

    Header file as #include <stdio.c>

    Is it correct if we write header file as #include <stdio.c>
    the C program will throw an error for the above header file


  2. #2

    Re: Header file as #include <stdio.c>

    ya you will get an error as "unable to open include file"


  3. #3
    Junior Member
    Join Date
    Jul 2007
    Answers
    18

    Smile Re: Header file as #include <stdio.c>

    Quote Originally Posted by swati_12sanu View Post
    Is it correct if we write header file as #include <stdio.c>
    the C program will throw an error for the above header file
    hi..Gm

    plz mention include <stdio.h> instead of inlcude<stdio.c> and check for the error.


  4. #4
    Junior Member
    Join Date
    Jul 2007
    Answers
    9

    Re: Header file as #include <stdio.c>

    Wel if u have that file stdio.c then definately u can include that file as header


  5. #5
    Junior Member
    Join Date
    Aug 2007
    Answers
    2

    Re: Header file as #include <stdio.c>

    Quote Originally Posted by swati_12sanu View Post
    Is it correct if we write header file as #include <stdio.c>
    the C program will throw an error for the above header file
    ya u can use "stdio.c" if the header file stdio.h is saved with .c extension
    although in some processor it will lead to an error as header file should be with .h extension


  6. #6
    Junior Member
    Join Date
    Jul 2007
    Answers
    4

    Re: Header file as #include <stdio.c>

    Quote Originally Posted by swati_12sanu View Post
    Is it correct if we write header file as #include <stdio.c>
    the C program will throw an error for the above header file
    but it is a header file.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact