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

What are the advantages of c preprocessor?

713


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

673


Why do we need volatile in c?

742


write a program for the normal snake games find in most of the mobiles.

1786


Write a program which returns the first non repetitive character in the string?

603






I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

563


Can 'this' pointer by used in the constructor?

611


What math functions are available for integers? For floating point?

623


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

1777


Explain which function in c can be used to append a string to another string?

588


Explain the meaning of keyword 'extern' in a function declaration.

722


What do you mean by invalid pointer arithmetic?

637


What is getch() function?

649


Is c dynamically typed?

667


what is different between auto and local static? why should we use local static?

644