Computer Science, asked by CARELESSGIRL, 1 year ago

What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

Answers

Answered by EHSASS
3

ıllıllı ʜᴇʀᴇ ɪs ʏᴏᴜʀ ᴀɴsᴡᴇʀ ıllıllı

When Header file include within double quotes (“”), compiler search first in the working directory for the particular header file. If not found then in the built in the include path. But when Header file include within angular braces (<>), the compiler only search in the working directory for the particular header file.

ᴇʜsᴀss  ✿◕ ‿ ◕✿

Answered by TheKingOfKings
6

Question =====@@@

What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

Answer =======@@@

uses of ("")

it first searches the current directory (i.e. the directory where the module being compiled is) and only then it'll search the include path list.

uses of (<>)

This ensures that in the (not recommended) case in which you have a local header with the same name as a standard header, the right one will be chosen in each case..

Similar questions