C Programming File Inclusion 1 Online Exam Quiz
C Programming File Inclusion 1 GK Quiz. Question and Answers related to C Programming File Inclusion 1. MCQ (Multiple Choice Questions with answers about C Programming File Inclusion 1
Which directory the compiler first looks for the file when using #include?
Options
A : Current directory where program is saved
B : C:COMPILERINCLUDE
C : S:SOURCEHEADERS
D : Both C:COMPILERINCLUDE and S:SOURCEHEADERS simultaneously
What would happen if you create a file stdio.h and use #include “stdio.h”?
Options
A : The predefined library file will be selected
B : The user-defined library file will be selected
C : Both the files will be included
D : The compiler won’t accept the program
How is search done in #include and #include”somelibrary.h” normally or conventionally?
Options
A : When former is used, current directory is searched and when latter is used, standard directory is searched
B : When former is used, predefined directory is searched and when latter is used, current directory is searched and then predefined directories are searched
C : When former is used, search is done in implementation defined manner and latter is used to search current directory
D : For both, search for somelibrary is done in implementation-defined manner
How is search done in #include and #include “somelibrary.h” according to C standard?
Options
A : When former is used, current directory is searched and when latter is used, standard directory is searched
B : When former is used, standard directory is searched and when latter is used, current directory is searched
C : When former is used, search is done in implementation defined manner and when latter is used, current directory is searched
D : For both, search for ‘somelibrary’ is done in implementation-defined places
Can function definition be present in header files?
Options
A : Yes
B : No
C : Depends on the compiler
D : Depends on the standard
Chemical Engineering Basics - Part 1 more Online Exam Quiz
C Programming Assigment Operators Expressions 2
C Programming C Preprocessor 2
C Programming Data Types Sizes 2
C Programming Float Datatype 1
C Programming Float Datatype 2
C Programming Interview Declarations