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

Answer Posted / shuvransu_banerjee

<stdio.h> is a header file which available in include
directory of the system. When we write #include<stdio.h>
preprocessor search for it in include directory directly
and not out of this directory. But when we write "stdio.h"
precessor start searching for this header file from current
directory and then in parent directories. So if we write
our own stdio.h in the current directory and include in
program as #include"stdio.h" then our header will be
included instead of system header.

Is This Answer Correct ?    313 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

631


What is malloc return c?

598


Explain about block scope in c?

661


What is class and object in c?

589


Can two or more operators such as and be combined in a single line of program code?

809






Why main function is special give two reasons?

948


When should a far pointer be used?

604


What is the purpose of ftell?

601


What language is lisp written in?

618


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2699


How can I prevent another program from modifying part of a file that I am modifying?

614


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

683


What is LINKED LIST? How can you access the last element in a linked list?

633


Differentiate between Macro and ordinary definition.

731


Why is sprintf unsafe?

619