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 |
Hi can anyone tell what is a start up code?
c program to arrange digits in a no in ascending and descending order
What is the scope of an external variable in c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
How can you restore a redirected standard stream?
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
Explain what is the benefit of using enum to declare a constant?
Is struct oop?
#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
print the table 5 in loops