what is use#in c

Answers were Sorted based on User's Feedback



what is use#in c..

Answer / rusmguys

# is preprocessor which tell compiler that what header
file we using in our program.
for example:
#include<stdio.h>
void main()
in the above when compiler check program it start execution
of program from main and will tell that uor header file
is "standard input output header file"

Is This Answer Correct ?    8 Yes 0 No

what is use#in c..

Answer / saurabh chakrabarty

# is used in c to write preprocessor statements (i.e. macros)

these statements are called preprocessor statements as these
statements are processed prior to the compilation of the
rest of the code by the compiler

Is This Answer Correct ?    1 Yes 0 No

what is use#in c..

Answer / sujith

Another use is for token pasting if used as ##

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

0 Answers  


int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ?

15 Answers   Mascot,


What is a constant and types of constants in c?

0 Answers  


If errno contains a nonzero number, is there an error?

0 Answers  


Why we use break in c?

0 Answers  






What is the modulus operator?

0 Answers  


How can I insert or delete a line (or record) in the middle of a file?

0 Answers  


How to create struct variables?

0 Answers  


What’s a signal? Explain what do I use signals for?

0 Answers  


What is extern c used for?

0 Answers  


change to postfix a/(b+c*d-e)

8 Answers   Value Labs,


What is wrong in this statement?

0 Answers  


Categories