What will the pre-processor do for a program?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Professional Tutor with 15 years of experience.

The pre processor takes a look at your source code just before it goes off to the compiler, does a little formatting, and carries out any instructions you have given it. Each # command that the preprocessor encounters results in a modification to the source code in some way. Let’s take a look at them...
read more
The pre processor takes a look at your source code just before it goes off to the compiler, does a little formatting, and carries out any instructions you have given it. Each # command that the preprocessor encounters results in a modification to the source code in some way. Let’s take a look at them briefly in turn, and then we’ll see what goes on behind the scenes. read less
Comments

Success in CBSE / ICSE Class 12 and 10 Mathematics Boards

Pre-processor is the predefined definitions of specific functions. So , programmer don't need to define while calling similar functions
Comments

We have to include that file to use some ready functions in that particular header file.
Comments

Tutor

The preprocessor takes a look at your source code just before it goes off to the compiler, does a little formatting, and carries out any instructions you have given it.
Comments

Pre-processor, as it suggests, does something before hand. They help in generating code in lesser lines. The lines defined for pre-processing are done during compilation period, which is the reason why it can be better than functions in terms of call overhead because macros are done during compile...
read more
Pre-processor, as it suggests, does something before hand. They help in generating code in lesser lines. The lines defined for pre-processing are done during compilation period, which is the reason why it can be better than functions in terms of call overhead because macros are done during compile time at one go. read less
Comments

Freelance technical trainer / consultant (Embedded systems, Automation / Scripting) : C, Linux, Embedded systems, python, perl, tcl

It takes source file as input, works on all the prerpocessor directives in that file and produces an intermediate file.
Comments

View 4 more Answers

Related Questions

C machine independent Programming Language? C is portable . Means What?
It can work on various hardware configuration . C doesnt require mandatory or same set of hardware to run program. A program can written on one comp. And can run on other comp.(machine)
Shiva
Why are operating systems written in C? Why aren't other languages used?
low-level access to hardware, performance, and historical reasons.
Chandramami
0 0
5
what is syntex error
A syntax error is an error which found in the source code of a program or sometimes it can be small grammatical mistakes in spelling or limited to a single character. Programming languages follow their...
Tanha
What is a void main() in the C programming language?
In C programming, void main() is an incorrect signature for the main function. The correct signature is int main(). The main function serves as the entry point for C programs and typically returns an integer...
Ambar
0 0
5
How do we print something, e.g. my name, in C language without using the printf function?
int main() { char str1; char str1; strcpy (str1,"tutorialspoint"); strcpy (str1,"compileonline"); puts(str1); puts(str1); return (0); } Compile and run the above program to produce the following result tutorialspoint compileonline
Praveen
0 0
6

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

C Program-Prime Number
/*WAP to print a number entered by the user is prime or not*/ //Header files #include<stdio.h>#include<conio.h> //Main function void main(){ int num,i; //Function for clearing screen clrscr();...

Why C is a Language and not a database?
When I interviewed a candidate, I raised this question many times, but I have not got the answer correctly. To under why C is a language and not a database, it is good to understand why our communication...

Recursion in C Programming
The process of calling a function by itself is called recursion and the function which calls itself is called recursive function. Syntax of Recursive Function returntype recursive_func () { statements; ...
R

Ravindra Yadav

2 0
0

C-Program Swapping Contents Of Variables Using Function [Call By Reference Method]
//Header Files #include#include // User defined functions swap with 2 pointer variables passed as an argument list void swap(int*i,int*j){ // Local variable temp int temp; // swapping contents using...

C for Begginers
C is an procedure oriented programming language. For any begginer the word program is new. Program: Set of instructions to be followed by machine or computer. Instruction Examples: Arithmetic instruction...

Recommended Articles

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you