what is the difference between #include<stdio.h> and
#include"stdio.h" ?
Answers were Sorted based on User's Feedback
Answer / shahab
# include<stdio.h>--- It searches one directory i.e
specified list of directory.
# include"stdio.h"---- It searches two i.e specified list
of directory & current directory.
Is This Answer Correct ? | 66 Yes | 10 No |
Answer / mytri
#include<stdio.h>--Search from current directory
#include"stdio.h"--Search from list of directories that are
included in path
Is This Answer Correct ? | 61 Yes | 28 No |
Answer / mini bangar
when we write #include<stdio.h> preprocessor search for it in include directory directly.but when we write "stdio.h" precessor start searching for this header file from current directoryand then in parent directories.
Is This Answer Correct ? | 25 Yes | 5 No |
Answer / sreekanth
#include "stdio.h"
The compiler will search for a particular stdio.h in the
current working directory only
where as <stdio.h> the complier looks into default dir.
which is in most cases /include/lib or you can define this
directory by your own.
Is This Answer Correct ? | 30 Yes | 14 No |
Answer / sanjay chandra
#include<stdio.h> /* stdio.h is searched in c:\TCP\INCLUDE
folder. If not found gives compilation error
#include "stdio.h" first searches for stdio.h in
c:\TCP\BIN(current diretory) . If not found searches
c:\tcp\include\ for stdio.h file
Is This Answer Correct ? | 21 Yes | 7 No |
Answer / rakesh simar
include<stdio.h> is a part of hedrfile and & it means standard input(scanf) &output(printf)
Is This Answer Correct ? | 3 Yes | 14 No |
Can we replace the struct function in tree syntax with a union?
How is actual parameter different from the formal parameter?
What are pointers? What are stacks and queues?
What is the advantage of using #define to declare a constant?
0 Answers Agilent, ZS Associates,
what is the difference between unix os and linux os
cavium networks written test pattern ..
ABCDCBA ABC CBA AB BA A A
2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value
what is pointer ?
10 Answers Kernex Micro Systems,
How do you write a program which produces its own source code as its output?
void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?
What is calloc() function?