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 |
Why do we use stdio h and conio h?
Write the program for displaying the ten most frequent words in a file such that your program should be efficient in all complexity measures.
Explain threaded binary trees?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
differentiate between const char *a; char *const a; and char const *a;
2 Answers College School Exams Tests, HCL, TCS,
What is pointer to pointer in c?
An entire structure variable can be assigned to another structure variable if __________
3 Answers Sasken, TCS, Tech Mahindra, Wipro,
1. main() { printf("%d",printf("HelloSoft")); } Output?
How can I call a function, given its name as a string?
What are the 5 types of inheritance in c ++?
Difference between linking and loading?
write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?