Why preprocessor should come before source code?
Answers were Sorted based on User's Feedback
Answer / bhaskar.mantrala
why because when we compile a program all input and output
statements will be replaced by thier own codes present in
the directives...so all these things would be done by
preprocessor(pre processing) (#).....
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / ashu_deepu
because there are codes which we use in the main program
need to be defined before their use.
or we can say we do so to have the prototype declaration
before their use.
eg.printf,scanf etc.
preprocessor include the header file
like stdio,conio etc.
| Is This Answer Correct ? | 1 Yes | 1 No |
Explain the use of 'auto' keyword in c programming?
String concatenation
main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above
You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?
How to receive strings with spaces in scanf()
how to find string length wihtout using c function?
Does c have class?
What are the benefits of organizational structure?
for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????
find largest element in array w/o using sorting techniques.
can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?
Can we write a program without main() function?