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

Are bit fields portable?

669


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3270


Sir i need notes for structure,functions,pointers in c language can you help me please

1939


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

640


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1113






What is the full form of getch?

574


What is I ++ in c programming?

617


What is a good data structure to use for storing lines of text?

586


What is class and object in c?

581


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

615


What is meant by inheritance?

622


Is there any data type in c with variable size?

626


What is the usage of the pointer in c?

596


What is a nested formula?

597


c program for searching a student details among 10 student details

1646