Home » C programs » Common C program Errors

Fatal Error: stio.h: No such file or directory in C

Here, we will learn why a Fatal error: stio.h: No such file or directory is occurred and how to fix it in C programming language?
Submitted by IncludeHelp, on September 09, 2018

stio.h is not a valid header file in C programming language, when you write the program, sometimes, we may forget to write the header file name correctly - in that case such fatal error is occurred.

Example:

#include <stio.h>

int main(void){
	printf("Hello world");
	return 0;
}

Output

prog.c:1:18: fatal error: stio.h: No such file or directory
 #include <stio.h>
                  ^
compilation terminated.

How to fix?

See the header fie inclusion section, I wrote #include <stio.h> instead of #include <stdio.h>, to fix this or such errors, we should use correct header file names.

Correct code:

#include <stdio.h>

int main(void){
	printf("Hello world");
	return 0;
}

Output

Hello world





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.