What are the preprocessors?
Answers were Sorted based on User's Feedback
Answer / santhi
a preprocessor which process some other files before our
main program.
eg:#include<stdio.h>
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / vishnu vardan
Preprocessor is a parser which parses the code before
compilation.It describes path of compilation,includes the
definitions of standard C functions and subustuites the
variables depending on the pre processor directive
used.Also can be used to output the comments and error
messages during compilation.
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / achal
Each of the above answers is partially correct. A
Preprocessor is a software tool. You include many
preprocessor directives in your program.
e.g. include directives , #define, #ifdef , #pragma for
conditional compilation. All these things are taken care by
this tool. It comes into picture before compiler.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / prasanna
Preprocessor is the program which processes the source code before it goes to the compiler.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / priya
In computer science, a preprocessor is a program that processes its input data to produce output that is used as input to another program. The output is said to be a preprocessed form of the input data, which is often used by some subsequent programs like compilers.
Is This Answer Correct ? | 2 Yes | 0 No |
preprocessor is which tells the compiler what header file
we are going to use in our program
#include<stdio.h>
will tell the compiler that it include header file standard
input output
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / harika.thota001@gmail.com
The preprocessor provides the ability for the inclusion of header files, macro expansions, conditional compilation, and line control.
In many C implementations, it is a separate program invoked by the compiler as the first part of translation.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / niraj gupta
preprocessor is which tells the compiler what header file
we are going to use in our program
#include<stdio.h>
will tell the compiler that it include header file standard
input output
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sachin tyagi
The pre processor run before the compliler
The started statement # is called pre-procrssor command
Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of a conditional inclusion statement in C?
What should malloc() do?
Why do we use c for the speed of light?
Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….
struct tag{ auto int x; static int y; };main() { struct tag s; s.x=4; s.y=5; printf(“%d”,s.x); }
How can you return multiple values from a function?
#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)
struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?
List some applications of c programming language?
What will be printed as the result of the operation below: #include<..> int x; int modifyvalue() { return(x+=10); } int changevalue(int x) { return(x+=1); } void main() { int x=10; x++; changevalue(x); x++; modifyvalue(); printf("First output:%d\n",x); x++; changevalue(x); printf("Second output:%d\n",x); modifyvalue(); printf("Third output:%d\n",x); }