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
Write a program to print factorial of given number using recursion?
What is a global variable in c?
What is the use of ?: Operator?
Can the sizeof operator be used to tell the size of an array passed to a function?
Is the exit() function same as the return statement? Explain.
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
What is the equivalent code of the following statement in WHILE LOOP format?
How to throw some light on the b tree?
What is variable and explain rules to declare variable in c?
In a byte, what is the maximum decimal number that you can accommodate?
How can I make it pause before closing the program output window?
What's a good way to check for "close enough" floating-point equality?
What is the argument of a function in c?
Explain the difference between structs and unions in c?
How will you divide two numbers in a MACRO?