Anonymous

What Is The Meaning Of # In C Program?

7

7 Answers

Shefali Singhal Profile
Shefali Singhal answered
This '#' symbol is called Hash symbol. This is for including Header files in your 'C' program. Header files means to include built-in files of your C library. This is generally called as 'preprocessor directives'.
Anonymous Profile
Anonymous answered
This is preprocessor directive...by which we link the header file,that is in include directry...to our program
balaji raghavan Profile
balaji raghavan answered
# is known as "hash" symbol...
It is used in the header comment line of ANY 'c ' program.
It always denotes the HEADER FILE DECLARATION.
 
 
Tanveer Khan Profile
Tanveer Khan answered
In "c" language we use a specific symbol i.e. #..it is used to add header files directly in yort C program.  It is called preprocessor directives.      Tanveer Khan
Anonymous Profile
Anonymous answered
Perhaps this # is the connecting parameter to the DLL files in the specified directory..as we use *111# or *123# from our mobile to know the balance...so # does the similar function acc to me...
Florio Potter Profile
Florio Potter answered

It tells the compiler where the following line actually came from. It's usually only the C preprocessor that adds these, for example, when including a file, it tells the compiler (which is basically only seeing one stream of data) that we're looking at a different file.

This may sound strange, but the preprocessor simply inserts the header files where you specify your includes, and the compiler works on the whole thing (all header files concatenated along with your source code), you can check the result of the preprocessor stage if using gcc with gcc -E myfile.c. In there you'll notice it adds a #line directive whenever you include files, and also whenever it reduces the amount of text fed to the compiler (such as large amounts of comments may be reduced to a single #line directive, skipping ahead)

It is also used by other programs, such as bison/yacc to tell you that the problem (if there's a compile problem) is related to your rules-file at a specific line, which the compiler would otherwise be unable to do, as the bison/yacc generates c-files.

For more information get help at CodeAvail-
Online Computer Science Assignment help

Anonymous Profile
Anonymous answered
I don't know what is the meaning of program

Answer Question

Anonymous