Practice these File Inclusion under C Programming walk-in interview Questions/ examination questions with best tricks and short cuts with solution. Student (candidate) who want to crack the walk in interview, competitive exams and want to find short cuts and tricks to solve questions on File Inclusion for following purpose.
– Anyone who is wishing to increase their perfect knowledge of File Inclusion of C Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge C Programming specifically File Inclusion.
– Anyone who is preparing for interviews (competitive examinations, govt examinations and bank examinations, off-campus or on campus interviews, walk-in interview and company interviews) having questions on File Inclusion under C Programming.
– Anyone who is preparing for aptitude test or competitive exam or entrance exam.
– Anyone who is preparing for entrance examinations and other competitive examinations.
– All Experienced, Freshers and Students.
Here is list of Questions and Answers covering all key area of File Inclusion topic of C Programming:
If the file name is enclosed in double quotation marks
The below two lines are equivalent to
If the file name is enclosed in angle brackets
How is search done in #include and #include”somelibrary.h” normally or conventionally?
When former is used, search is done in implementation defined manner and latter is used to search current directory
When former is used, current directory is searched and when latter is used, standard directory is searched
What is the output of this C code?
Answer: Option B
File to be included must be specified either in “” or <>.
$ cc pgm1.c
pgm1.c:1: error: #include expects “FILENAME” or
pgm1.c: In function ‘main’:
pgm1.c:4: warning: incompatible implicit declaration of built-in function ‘printf’
Which of the following names for files not accepted?
What is the sequence for preprocessor to look for the file within <> ?
Which directory the compiler first looks for the file when using #include ?
How is search done in #include and #include “somelibrary.h” according to C standard?
When former is used, search is done in implementation defined manner and when latter is used, current directory is searched
When former is used, standard directory is searched and when latter is used, current directory is searched
What would happen if you create a file stdio.h and use #include “stdio.h” ?
Which of the following file extensions are accepted with #include?