What is preprocessor with example?



What is preprocessor with example?..

Answer / Naman Goel

The C Preprocessor is a tool that processes C source files before they are compiled. It handles directives like #include, #define and conditional compilation (#ifdef, #ifndef, etc.). For example, #include <stdio.h> brings the standard input/output library into your program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Can a pointer point to null?

1 Answers  


Explain what is the difference between null and nul?

1 Answers  


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

1 Answers  


Give basis knowledge of web designing ...

1 Answers   HCL,


main() { char *ptr = "Ramco Systems"; (*ptr)++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } Find the Outputs?

9 Answers   BTBP, CitiGroup,


Write a program to print this triangle: * ** * **** * ****** * ******** * ********** Don't use printf statements;use two nested loops instead. you will have to use braces around the body of the outer loop if it contains multiple statements.

6 Answers   Wipro,


sir i got 146 correct question & i have also the advantage of height so will they consider my marks as 146+3=149.can any body tell me how they consider my height marks.

1 Answers  


Can two or more operators such as and be combined in a single line of program code?

1 Answers  


what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??

5 Answers  


What is the Lvalue and Rvalue?

2 Answers  


 Illustrate it   summing the series 2+4+6+......to n terms using  (i) while loop (ii) do-while loop

2 Answers  


Differentiate fundamental data types and derived data types in C.

1 Answers   HCL,


Categories