Why do u use # before include in a C Progam?

Answers were Sorted based on User's Feedback



Why do u use # before include in a C Progam?..

Answer / sudarsan gouda

# is nothing but the preprocessor operator.That means it
will execute before the main() execution.
That means we are required to include that header file
those are required to our program before main(),

Is This Answer Correct ?    56 Yes 4 No

Why do u use # before include in a C Progam?..

Answer / rama krishna sidhartha

# symbol denotes preprocessor directive in C or C++. It
means that it says the compiler that it containd some
predefined information. Like it mentions any library
included. eg # include stdio.h

Is This Answer Correct ?    26 Yes 2 No

Why do u use # before include in a C Progam?..

Answer / thanuj

to include address of header file we are writing # before
include

Is This Answer Correct ?    16 Yes 9 No

Why do u use # before include in a C Progam?..

Answer / srinath

# is symbol of the Preprocessor directive means it tells the
compiler i will execute before compilation time.the
preprocessor directives like
#include<stdio.h>
# define MAX 10

Srianth

Is This Answer Correct ?    6 Yes 0 No

Why do u use # before include in a C Progam?..

Answer / sashfsjfg

# is a preprocessor it is used tell the current header file
to add some wat needed source code to program it invokes
before main function

Is This Answer Correct ?    4 Yes 1 No

Why do u use # before include in a C Progam?..

Answer / sandeep kr. maurya

in programming all operators are used(leaving # and @) then
programers want to a symbol for preprocessor. and # is
nothing in used then programers take this symbol for
preprocessor. and @ is used in Email.

Is This Answer Correct ?    1 Yes 0 No

Why do u use # before include in a C Progam?..

Answer / manav kothari

# is preprocessor directive. It will execute before compilation is done

Is This Answer Correct ?    1 Yes 0 No

Why do u use # before include in a C Progam?..

Answer / akashdixit254

preprocesser function

Is This Answer Correct ?    0 Yes 0 No

Why do u use # before include in a C Progam?..

Answer / yuvaraj

# is nothing but a symbol which denote starting of preprocessor i.e its an syntax like comment line /*

Is This Answer Correct ?    5 Yes 14 No

Post New Answer

More C Interview Questions

char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable)

7 Answers   Mascot,


I need testPalindrome and removeSpace #include <stdio.h> #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, &copyCount); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

0 Answers  


Why pointers are used?

0 Answers  


when user give a number it multiply with 9 without useing '+' and '*' oprator

4 Answers  


why we use "include" word before calling the header file. is there any special name for that include??????

1 Answers   TCS,






void main() {int i=2; printf("%d%d%d",i,++i,i++); getch(); }

9 Answers  


write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR

5 Answers  


What is c variable?

0 Answers  


What is nested structure with example?

0 Answers  


What is static memory allocation?

0 Answers  


Wt are the Buses in C Language

0 Answers   Infosys,


write a program to sort the elements in a given array in c language

10 Answers   TCS,


Categories