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 is meant by gets in c?
can we access one file to one directory?
how to use virual function in real time example
Why is extern used in c?
What would be an example of a structure analogous to structure c?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
Program to find larger of the two numbers without using if-else,while,for,switch
What is a floating point in c?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
How can I write a function analogous to scanf?
What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particular program?