What are the uses of pre-processor directives?
Answers were Sorted based on User's Feedback
Answer / raghav_jk
Preprocessor Directive are
#include
#if
#else
#define
#ifdef
#ifndef
#endif
the command starts with # are called preprocessor directives
Uses
File Inclussion
Conditional Compilation
Macro Expansion
Is This Answer Correct ? | 10 Yes | 0 No |
Answer / vl
The pre processor directives are the code line which are
replaced by the actuall value (header file and Macro
replacements) before compiler start the syntax checks.
Is This Answer Correct ? | 9 Yes | 2 No |
Explain what is the difference between #include and #include 'file' ?
Compare interpreters and compilers.
what does data structure mean?
What are local and global variables?
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.
10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning
Which one would you prefer - a macro or a function?
Can a function argument have default value?
Difference between Class and Struct.
13 Answers Ericsson, Motorola, Wipro,
Write a program to swap two numbers without using the third variable?
how to get the starting address of file stored in harddisk through 'C'program.