#include<STDIO.H>
It is in upper case but the program (compiles and) runs without any error in C language, but C is case sensitive — how this is possible?
#include<STDIO.H>
#include<CONIO.H>
main()
{
printf("hello");
getch();
}
This works if you are using Windows or another operating system that ignores case on its file system. It doesn't work on Linux and other Unix flavours, because they do care about case (by default).
When you add an include statement like #include <any_file.h>
, then the C-compiler will ask the operating system to open file any_file.h
.
If your operating system doesn't care about case, then it will open any file that matches the pattern. If it, for instance, finds a file named aNy_fILe.H
, it will open the file and present it to the C compiler.
The C-compiler will interpret the content of the file - this is the case-sensitive bit of the C language.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With