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 are directives in c?
How do we declare variables in c?
what are bitwise shift operators?
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]
What are inbuilt functions in c?
using for loop sum 2 number of any 4 digit number in c language
How many levels of indirection in pointers can you have in a single declaration?
0 Answers Agilent, ZS Associates,
find the size of structure without using the size of function
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
why programs in c are running with out #include<stdio.h>? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }
C,c++, Java is all are structural oriented or procedure oriented language..?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.