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 |
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?
void main() { int a=1; while(a++<=1) while(a++<=2); }
Is array a primitive data type in c?
suppose we use switch statement and we intilize years name using enum statement like(jan,feb,mar,------dec) we take integer value as an input .question is that the month which we analyz is from 0 to 11 bt if i enter 12 than how he again starts from begning and print jan
write a c program for swapping two strings using pointer
how write a addtion of two single dimensional array using of pointer in c language?
Define macros.
How many types of functions are there in c?
write a c program to add two integer numbers without using arithmetic operator +
program in c to print 1 to 100 without using loop
Is it better to use malloc() or calloc()?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above