What is the relation between # and include<stdio.h>
Answer Posted / jafar ali
when ever we include 'stdio.h' or any other header file
and use its features and functions using keyword 'include',
their codes are inserted in our source-code before
compiling.
when we use function printf() from stdio.h its code is
inserted in our code. This is done by c preprocessors and
is done before compiling the code.
And here '#' plays a vital part. # indicates that this
lines are to be considered by the preprocessor and it acts
appropriately.
i hope i have answered the question. i am new to c and
if any one want to add to this they are welcome.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Explain how do you list a file’s date and time?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
How many levels of indirection in pointers can you have in a single declaration?
Explain can you assign a different address to an array tag?
Tell us something about keyword 'auto'.
What are called c variables?
What are dangling pointers in c?
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.
Array is an lvalue or not?
Is it acceptable to declare/define a variable in a c header?
How can you be sure that a program follows the ANSI C standard?
What are the types of data structures in c?
Can you assign a different address to an array tag?
Where static variables are stored in memory in c?
Define Array of pointers.