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 |
Is there a built-in function in C that can be used for sorting data?
Write a program to print distinct words in an input along with their count in input in decreasing order of their count
What is the condition that is applied with ?: Operator?
What are enums in c?
what is the advantage of software development
What is the difference between calloc() and realloc()?
Explain what is wrong with this program statement? Void = 10;
How can I increase the allowable number of simultaneously open files?
write a program to generate 1st n fibonacci prime number
What are the different types of pointers used in c language?
int j =15,i; for (i=1; 1<5; ++i) {printf ("%d%d ",j,i); j = j-3; }
Write a program to produce the following output in c language? 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1