You are here:

C/INCLUDE

Advertisement


Question
Hi,
What is the difference between the two header file declaration formats: #include <string.h> and
#include "endianio.h"? Do I need to put both types in the INCLUDE folder of my Turbo C compiler in order to use them in my code.
 Andres


Answer
Hi Andres

#include<stdio.h> looks for the header file stdio.h in the folder specified in you directory settings somewhere inside you C:\TC\INCLUDE or C:\TC\LIB and includes the same.

whereas #include"stdio.h" searches for the header file stdio.h in your current working directory C:\TC\BIN and if it successfully locates the file then it includes the same and if it fails to find the header file then it looks for stdio.h in the specified directory C:\TC\INCLUDE or C:\TC\LIB and if both fails then it flashes an error message.

I guess this clears all your queries but still in case if you find any difficulty please feel free to get back to me.

regards
Joydeep  

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Joydeep Bhattacharya

Expertise

Ability to solve C and Data Structure problems and puzzles with simple and easy to understand logic.

Experience

C, C++, Java, Data Structure, PHP, Web Designing

Organizations
http://www.scodz.com Designation: webmaster

Publications
http://www.scodz.com

Education/Credentials
Master of Computer Applications

Past/Present Clients
http://analysingc.50webs.com http://www.funforu.com

©2012 About.com, a part of The New York Times Company. All rights reserved.