What are the uses of pre-processor directives?

Answers were Sorted based on User's Feedback



What are the uses of pre-processor directives?..

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

What are the uses of pre-processor directives?..

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

Post New Answer

More C Interview Questions

Why c++ is called c++ and not c+?

9 Answers   EBS,


List the difference between a "copy constructor" and a "assignment operator"?

0 Answers   Accenture,


can u suggest me am in a confusion to choose whether to go to c programming or a software testing . am a graduate in B.sc(electronics).

1 Answers  


Explain b+ tree?

0 Answers  


4. main() { int c=- -2; printf("c=%d",c); }

0 Answers  






using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

0 Answers  


what will happen if you free a pointer twice after allocating memory dynamically ?

3 Answers   Novell,


What is the return type of sizeof?

0 Answers  


Are bit fields portable?

0 Answers   EXL,


4.weight conversion: Write a program that will read weight in pounds and convert it into grams.print both the original weight and the converted value.There are 454 grams in a pound.design and carry out a test plan for this program.

1 Answers   Wipro,


a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?

6 Answers   Geometric Software,


What will be the outcome of the following conditional statement if the value of variable s is 10?

0 Answers  


Categories