What is the meaning When we write "#include" what is # and
what does include does there???
Answer Posted / kamal
# is a symbol with the help of which the compiler will
first process the statement following # before compiling
the program. for example if we have something called
#define MAX 100 then the compiler will replace all MAX in
the program with 100 and then compile the program.
Likewise include following # will tell the compiler to
include the header file mentioned in the statement.
ex: #include<stdio.h>
I think all will be satisfied with my answer....!
| Is This Answer Correct ? | 20 Yes | 5 No |
Post New Answer View All Answers
When we use void main and int main?
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
What is a good data structure to use for storing lines of text?
What are the application of c?
Why do we use & in c?
Why does everyone say not to use gets?
Define circular linked list.
How do I swap bytes?
Why c is called object oriented language?
What do you mean by a sequential access file?
I heard that you have to include stdio.h before calling printf. Why?
Explain data types & how many data types supported by c?
What standard functions are available to manipulate strings?
Why is not a pointer null after calling free?
Why is structure padding done in c?