CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS LANGUAGES C DETAILS
    Question :
    Can we have nested header files in C?
    Category C Interview Questions
    Rating (0.4) By 1978 users
    Added on 4/27/2009
    Views 1832
    Rate it!
    Answers:

    Yes, its perfectly possible to have nested header files in C.



    Yes, its perfectly possible to have nested header files in C.



    Posted by: ajinkya    

    Contact ajinkya Contact ajinkya

    yes its possible to write nested header files in c this can be show here with an example


    #include "inc.h"
    #include<stdio.h>
    main()
    {
    printf("hai");
    fnk();
    }

    in another file and save it as inc.h then write fnk() function in it as follows

    #include<stdio.h>
    fnk()
    {
    printf("hello");}
    }
    a



    Posted by: sute    

    Contact sute Contact sute

    yes its possible to write nested header files in c this can be show here with an example


    #include "inc.h"
    #include<stdio.h>
    main()
    {
    printf("hai");
    fnk();
    }

    in another file and save it as inc.h then write fnk() function in it as follows

    #include<stdio.h>
    fnk()
    {
    printf("hello");}
    }
    a



    Posted by: rahul    

    Contact rahul Contact rahul

    bcz at preprocessor stage conditional compilation come into picture n if once it is being included thn nxt inclusion simply ignored ... #ifndef header
    #else
    #define header



    Posted by: avizz    

    Contact avizz Contact avizz

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    What is the difference between object and reference?
    View Answer
    How to write a 'C' program to read an array of 10 numbers and print the prime nums?

    this is what i wrote
    could someone tell me where is my mistake?
    can i use here flag at all?

    #include <stdio.h>

    void main ()
    {
    int arr[10], i, j, flag;

    for (i=0;i<10;i++)

    scanf ("%d", &arr[i]);

    for (i=0;i<10;i++)
    {
    flag=1;


    for (j=2;j<=(arr[i]/2); j++)
    {
    if (arr[i]%j==0)
    {
    flag=0;
    break;

    }
    }
    }

    for (i=0;i<10;i++)
    {
    if (flag=1)

    printf ("%d", arr[i]);
    }
    View Answer
    Which language is not high-level language?
    View Answer
    What is data independence? what is transaction process application? Discuss the main charecteristics of data approach how it differs from traditional file system!
    View Answer
    How to find size of an datatype without using sizeof operator?
    View Answer
    How to find GCD of four numbers?
    View Answer
    Write a program to accept any number up to six digit and print in words.
    for ex:1234=one two three four
    View Answer
    What is type integration? And what is integer type integration?
    View Answer
    What is :- Token , identifier , block , parameter , argument , scope of variable , Macro ?
    View Answer
    What is the code to find our age,for example if my date of birth is 4/12/1986 and today date is 16/11/2008
    answer should give our year,month,no of days
    View Answer
    What is the difference between unix and linux.
    View Answer
    How to convert decimal to octal and hexadecimal?
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL C Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0 Seconds