why do we use # in c-language?
Answer / raj
This is for including Header files in your 'C' program.
Header files means to include built-in files of your C
library.The #include directive tells the preprocessor to
treat the contents of a specified file as if those contents
had appeared in the source program at the point where the
directive appears. You can organize constant and macro
definitions into include files and then use #include
directives to add these definitions to any source file.
| Is This Answer Correct ? | 7 Yes | 0 No |
a value that does not change during program execution a) variabe b) argument c) parameter d) none
Is double link list a linear data structure? If Yes, Why?If No, Why?
How Many Header Files in c?
How can I run c program?
Q.11 Generate the following pattern using code in any language(c/c++/java) for n no. of rows 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Read two numbers from keyboard and find maximum of them?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
is compiler do read the data line by line or not. ??
6 Answers LG Soft, Satyam, Tech Mahindra,
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What are local static variables? How can you use them?