0

why do we use different syntax for header files in C. I mean, why stdio.h uses greater than and less than symbols < > while bmp.h uses quotation marks " "?

#include <stdio.h>
#include <stdlib.h>

#include "bmp.h"

Thanks!

1 Answer 1

0

< stdio > is an instruction that tells the compiler to include that file when compiling and to search for that file in the default directory, usually / usr / include, if we use the quotes the compiler looks in the current working directory, If you look at your directory where it has recover there is also a file called "bmp.h"

1
  • Thanks for the explanation Mars! :) Commented Jun 3, 2017 at 18:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .