what is the difference between #include<stdio.h> and
#include "stdio.h" ?
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
in case of <stdio.h> this will be checking only the folder
containing C compiler...... as we will be describing the
path in the directories option in the IDE.....
in case of "stdio.h" this will be checking the entire hard
disk there by deleting the path given in the directories
explicitly .....
thank u
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / 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 |
Answer / n
implementation defined. read manual for the compiler you use.
if include " " fails, then include < > is tried
| Is This Answer Correct ? | 0 Yes | 0 No |
How can I do serial ("comm") port I/O?
how can we use static and extern?and where can we use this?
What is an auto variable in c?
Can 'this' pointer by used in the constructor?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
If fflush wont work, what can I use to flush input?
What is a good data structure to use for storing lines of text?
write a c program to find largest of three numbers using simple if only for one time.
Define Array of pointers.
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
. Explain the differences between fork() and exec() in C