English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

its #include

2006-08-04 22:04:10 · answer #1 · answered by iiiiiiiiiiiiii 2 · 0 1

Both #include and #include "stdio.h" are correct.
The difference between both is very fine but useful i.e

When you use , the C Preprocessor searches for the file in the standard "Include" directory i.e. for example if you have C in a directory called c:\turboc2\ then there is a directory called "Include" which stores all header files. This is the default location where the file is searched for when you write .This is mostly the requirement of a programmer.

But, when you write "stdio.h" , the file stdio.h is searched in whole directory of c:\turboc2 including all subfolders. This may be the case when you define your own headers and you do not store them inside the Include directory.

Thus either you write or "stdio.h" the file still gets included ( unless the header is not present ), but the difference between them is very fine.

Hope It will help.!!!

2006-08-05 00:13:37 · answer #2 · answered by ccsCoder 3 · 0 0

fedest.com, questions and answers