Can anyone explain this error? Here is my code:
int main(int argc, string argv[])
{
// code snipped
int c = strlen(argv);
// code snipped
Here is the error:
vig.c:15:20: error: incompatible pointer types passing 'string *' (aka 'char **') to parameter of type 'const char *'; dereference with * [-Werror,-Wincompatible-pointer-types]
int c = strlen(argv);
^~~~
*
/usr/include/string.h:399:35: note: passing argument to parameter '__s' here
extern size_t strlen (const char *__s)
Thanks in advance!