Which of the following are valid "include" formats?
A)#include and #include[file.h]
B)#include (file.h) and #include
C)#include [file.h] and #include "file.h"
D)#include <file.h> and #include "file.h"
Answers were Sorted based on User's Feedback
Answer / jj
ans-d.
1st one searches from current directory,
2nd one searches from list of directories specified in
inlcude path
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / rakshitha
Ans is D.. that is #include<file.h> and #include "file.h"
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / santosh
ans is d optioon because in c
we write hedder files in the following format,
#include<stdio.h>
#include "stdio.h"
there can be many number of file names.
above both formats are correct.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / shikhar
Usha, please donot write WRONG ANSWERS without
confirming....it is not a good practice...thx
The correct answer is D
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / belsia
The answer is "D".Because in c it is possible to use
double codes in the header file.so the correct
answers are
#include<file.h>
#include<"file.h"
| Is This Answer Correct ? | 1 Yes | 1 No |
what is a function prototype?
What is the best way to comment out a section of code that contains comments?
What is the use of printf() and scanf() functions?
write a fuction for accepting and replacing lowercase letter to'Z' with out using inline function.
What is "Duff's Device"?
hi how to convert program from notepad to turboc editor can u please help me
Explain argument and its types.
Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.
Where can I get an ansi-compatible lint?
write a program to print infinte number
What is the best organizational structure?
Explain how do you generate random numbers in c?