I am having a strange problem while returning a string. it says can not convert int to const char*
#include<stdio.h>
#include<conio.h>
#include <string.h>
/*The above program shows that you can not return a string from a function normally*/
char check(char str[]);
void main(void)
{
char str[30],str2[30];
printf("Enter a sentence:");
gets(str);
strcpy(str2,check(str));
getch();
}
char check(char str[30])
{
return str;
}