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

write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1646


What does *p++ do?

786


What is the purpose of scanf() and printf() functions?

899


What is "Hungarian Notation"?

832


Explain the difference between call by value and call by reference in c language?

858


How can a process change an environment variable in its caller?

910


How can I change the size of the dynamically allocated array?

875


What are all different types of pointers in c?

763


Can you please explain the difference between syntax vs logical error?

903


In C, What is the #line used for?

1479


Explain what are multidimensional arrays?

801


What is the meaning of typedef struct in c?

800


how to construct a simulator keeping the logical boolean gates in c

1977


What is %g in c?

822


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2267