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 program in C to print the alphabets in order as on a mobile phone.i.e:When 2 is pressed once 'a' prints and if it is pressed two times 'b' prints and so on.we have to print all the alphabets as on mobile phone like this.

1 Answers   Wipro,


When should I declare a function?

1 Answers  


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

1 Answers  


number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.

3 Answers  


How many bytes is a struct in c?

1 Answers  


what is difference between c and c++

4 Answers  


int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]

6 Answers   Hughes,


what are the stoge class in C and tel the scope and life time of it?

2 Answers   Tech Mahindra,


which one low Priority in c? a)=,b)++,c)==,d)+

10 Answers  


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

8 Answers   Aspire,


What are the key features of C?

6 Answers  


15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?

1 Answers  


Categories