why do we use # in c-language?



why do we use # in c-language?..

Answer / raj

This is for including Header files in your 'C' program.
Header files means to include built-in files of your C
library.The #include directive tells the preprocessor to
treat the contents of a specified file as if those contents
had appeared in the source program at the point where the
directive appears. You can organize constant and macro
definitions into include files and then use #include
directives to add these definitions to any source file.

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More C Interview Questions

What is a #include preprocessor?

0 Answers  


main() { int i; printf("%d",i^i); }

1 Answers  


2.Given the short c program that follows a. make a list of the memory variables in this program b.which lines of code contain operations that change the contents of memory? what are those operations? Void main( void) { Double base; Double height; Double area; Printf(“enter base and height of triangle :”); Scanf(“%lg”, &base); Scanf(“%lg”, &height); Area=base*height/2.0; Printf(“the area of the triangle is %g \n”,area); }

1 Answers   Wipro,


What does void main () mean?

0 Answers  


what is const volatile?

2 Answers  






Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);

5 Answers  


What are the 4 types of unions?

0 Answers  


What is a ternary operator in c?

0 Answers  


write an algorithm and c program to add two 2x2 matrics

2 Answers  


write a 'c' program to sum the number of integer values

8 Answers  


can we print any string in c language without using semicolon(;)(terminator) in whole program.

11 Answers  


program to print circle structure

1 Answers  


Categories