Why do u use # before include in a C Progam?
Answers were Sorted based on User's Feedback
# 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 |
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 |
Answer / thanuj
to include address of header file we are writing # before
include
Is This Answer Correct ? | 16 Yes | 9 No |
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 |
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 |
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 |
Answer / manav kothari
# is preprocessor directive. It will execute before compilation is done
Is This Answer Correct ? | 1 Yes | 0 No |
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 |
char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable)
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, ©Count); /* 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 ) { }
Why pointers are used?
when user give a number it multiply with 9 without useing '+' and '*' oprator
why we use "include" word before calling the header file. is there any special name for that include??????
void main() {int i=2; printf("%d%d%d",i,++i,i++); getch(); }
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
What is c variable?
What is nested structure with example?
What is static memory allocation?
Wt are the Buses in C Language
write a program to sort the elements in a given array in c language