A PHP Error was encountered

Severity: 8192

Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Filename: libraries/Filtered_db.php

Line Number: 23

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

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

0

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

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.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now