what is the difference between #include<stdio.h> and
#include "stdio.h" ?

Answer Posted / jasbir singh

When we use #include<stdio.h>, the compiler will look at the
compiler's directory for stdio.h file and then include it.
When we use #include"stdio.h", it will look in the source
code's directory for the stdio.h file.

"" are basically used when the header file is placed with
the source code(means .c or .cpp files), not in the C
Compiler's 'include' directory. It is basically used to
include our own self generated header files into our program.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c language used for?

553


What is the difference between fread and fwrite function?

634


how should functions be apportioned among source files?

623


Explain how can I convert a string to a number?

643


Without Computer networks, Computers will be half the use. Comment.

1867






How can you return multiple values from a function?

626


Explain what are linked list?

617


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

654


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

763


What is || operator and how does it function in a program?

622


Explain about the constants which help in debugging?

843


What are unions in c?

572


What is a wrapper function in c?

579


Can we change the value of static variable in c?

556


In which language linux is written?

595