why do we use # in c-language?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I read and write comma-delimited text?

925


What is line in c preprocessor?

799


Is it possible to execute code even after the program exits the main() function?

1060


Explain how can a program be made to print the name of a source file where an error occurs?

939


What is %lu in c?

908


What is build process in c?

863


How can I automatically locate a programs configuration files in the same directory as the executable?

850


Is c object oriented?

719


Describe the modifier in c?

858


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4394


What is difference between function overloading and operator overloading?

856


What are the salient features of c languages?

849


Which is better oop or procedural?

809


Write a program to print "hello world" without using a semicolon?

835


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

895