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 |
What are the complete rules for header file searching?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} what would be the output?
What is the main difference between calloc () and malloc ()?
main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.
every function has return the value?
What do you mean by invalid pointer arithmetic?
what is difference between ANSI structure and C99 Structure?
What is the argument of a function in c?
What is realloc in c?
How #define works?
what is the difference between i++ and ++i?
Explain the use of 'auto' keyword