Guys can you help with this problem ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Guys can you help with this problem ?

Actually I am doing a c program but in the top we will put include stdio.h and include conio.h but if I give run it is showing error in conio.h header file I don't know why ?

8th Nov 2022, 4:14 PM
Gobika K
10 Answers
+ 2
It is deprecated header file. Not a standard header. So it's not available in modern compilers. Don't work. To remove errors, Don't include it and it's function in code
8th Nov 2022, 4:18 PM
Jayakrishna 🇮🇳
+ 1
conio.h is not a part of C standard library or ISO C rather it's used in DOS compilers In C/C++, #include <conio. h> – It is used to include the console input output library functions. The getch(), clrscr() function is defined in conio. h file.
8th Nov 2022, 4:18 PM
I am offline
I am offline - avatar
+ 1
New compilers .Don't work
10th Nov 2022, 2:41 PM
Ranjna Gupta
0
But if I didn't mention it to there are so many errors it is showing
8th Nov 2022, 4:23 PM
Gobika K
0
Gobika K are you using void main()? If not please post your code
8th Nov 2022, 4:24 PM
I am offline
I am offline - avatar
0
Yes I am using it
8th Nov 2022, 4:26 PM
Gobika K
- 1
Gobika K Sololearn uses modern conventions as used in IDE's so we don't prefer writing non-returning main function rather you should use int main () with a return statement
8th Nov 2022, 4:30 PM
I am offline
I am offline - avatar
- 1
Is that so ? Then can you post the c program to palindrome because I don't know how to do that correction.. if you can help me ?
8th Nov 2022, 4:32 PM
Gobika K
- 1
https://code.sololearn.com/cgo4E5tnU0TW/?ref=app Instead of reversing string we can check weather last and first part are same or not. I'm doing so cuz strrev is non standard and deprecated function. So don't work on modern compilers.
8th Nov 2022, 4:56 PM
I am offline
I am offline - avatar