Is it correct if we write header file as #include <stdio.c>
the C program will throw an error for the above header file
Printable View
Is it correct if we write header file as #include <stdio.c>
the C program will throw an error for the above header file
ya you will get an error as "unable to open include file"
[QUOTE=swati_12sanu;16516]Is it correct if we write header file as #include <stdio.c>
the C program will throw an error for the above header file[/QUOTE]
hi..Gm
plz mention include <stdio.h> instead of inlcude<stdio.c> and check for the error.
Wel if u have that file stdio.c then definately u can include that file as header :)
[QUOTE=swati_12sanu;16516]Is it correct if we write header file as #include <stdio.c>
the C program will throw an error for the above header file[/QUOTE]
ya u can use "stdio.c" if the header file stdio.h is saved with .c extension
although in some processor it will lead to an error as header file should be with .h extension
[QUOTE=swati_12sanu;16516]Is it correct if we write header file as #include <stdio.c>
the C program will throw an error for the above header file[/QUOTE]
but it is a header file.