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 ?
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
+ 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.
+ 1
New compilers .Don't work
0
But if I didn't mention it to there are so many errors it is showing
0
Gobika K are you using void main()?
If not please post your code
0
Yes I am using it
- 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
- 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 ?
- 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.