English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-04-26 20:15:29 · 4 answers · asked by l k 1 in Computers & Internet Programming & Design

4 answers

The symbol # in C signifies preprocessing statements, non-C programming codes ran before actual compilation, not really part of C standard in paper but just as important, the one that was taught to use is obviously #include

2007-04-26 21:09:51 · answer #1 · answered by Andy T 7 · 0 0

Preprocessor Directives

Preprocessor directives, such as #define and #ifdef, are typically used to make source programs easy to change and easy to compile in different execution environments. Directives in the source file tell the preprocessor to perform specific actions. For example, the preprocessor can replace tokens in the text, insert the contents of other files into the source file, or suppress compilation of part of the file by removing sections of text. Preprocessor lines are recognized and carried out before macro expansion. Therefore, if a macro expands into something that looks like a preprocessor command, that command is not recognized by the preprocessor.

Preprocessor statements use the same character set as source file statements, with the exception that escape sequences are not supported. The character set used in preprocessor statements is the same as the execution character set. The preprocessor also recognizes negative character values.

The preprocessor recognizes the following directives:

#define
#error
#import
#undef

#elif
#if
#include
#using

#else
#ifdef
#line


#endif
#ifndef
#pragma



The number sign (#) must be the first nonwhite-space character on the line containing the directive; white-space characters can appear between the number sign and the first letter of the directive. Some directives include arguments or values. Any text that follows a directive (except an argument or value that is part of the directive) must be preceded by the single-line comment delimiter (//) or enclosed in comment delimiters (/* */). Lines containing preprocessor directives can be continued by immediately preceding the end-of-line marker with a backslash (\).

Preprocessor directives can appear anywhere in a source file, but they apply only to the remainder of the source file.

2007-04-27 00:20:53 · answer #2 · answered by X Naveen 1 · 2 0

Preprocessor directives.

2007-04-30 17:17:38 · answer #3 · answered by Deepak Vasudevan 5 · 0 0

# is a directive used to include libraries in c/c++
using #include directive.

2007-04-27 00:45:29 · answer #4 · answered by problem_terminator 1 · 0 0

fedest.com, questions and answers