#include<cstdio>
using namespace std;
int main()
{
int indis = 0;
char* g, firma[50];
cout << "firma adı giriniz: "; fgets(firma, 50, g);
g = firma;
while (g[indis] != NULL)
{
cout << g[indis];
indis++;
}
return 0;
}
why is fgets function not working?
error: C++ argument of type is incompatible with parameter of type