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



Which of the following are valid "include" formats? A)#include and #include[file.h] B)#i..

Answer / rajesh

correct answer is C) because file.h is not a predefined
headerfile by c/c++ compiler, so it is a userdefined
headerfile and it can be included in a program in any of
the ways as mentioned in option c).

Is This Answer Correct ?    1 Yes 3 No

Which of the following are valid "include" formats? A)#include and #include[file.h] B)#i..

Answer / prakash

none are correct

Is This Answer Correct ?    0 Yes 7 No

Which of the following are valid "include" formats? A)#include and #include[file.h] B)#i..

Answer / kuamr

b

Is This Answer Correct ?    0 Yes 8 No

Which of the following are valid "include" formats? A)#include and #include[file.h] B)#i..

Answer / selva kuamr

c

Is This Answer Correct ?    0 Yes 8 No

Which of the following are valid "include" formats? A)#include and #include[file.h] B)#i..

Answer / selva kumar

In c we didnt have the header files which is enclosed with
double codes.so the answer is A

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More C Interview Questions

What do you mean by keywords in c?

0 Answers  


Do pointers take up memory?

0 Answers  


void main() { int i=5; printf("%d",i+++++i); }

17 Answers   ME,


a<<1 is equivalent to a) multiplying by 2 b) dividing by 2 c) adding 2 d)none of the above

2 Answers   HCL, NBN,


What will be the output of the following program #include<stdio.h> void main() { int i=20; i-=i+++++i++; printf("%d",i); }

5 Answers  






write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+

1 Answers   Reliance,


Differentiate between a for loop and a while loop? What are it uses?

0 Answers   TISL,


how many errors in c explain deply

0 Answers  


Are c and c++ the same?

0 Answers  


How to compare array with pointer in c?

0 Answers  


What does s c mean in text?

0 Answers  


String concatenation

2 Answers  


Categories