0
experssion must have a class type
char a[100]; for(int i=0; i<a.length; i++) in (a.length) it gives "experssion must have a class type"error what it means and how can i solve it?
6 Respostas
+ 3
my bad...that's C# syntax I wrote.
+ 2
try this instead:
char[] a = new char [100];
+ 1
Hi bro
how can i use strlen for array?
it's only for strings i think, am i right?
0
i tried it
It didnt work
0
hey matin, use strlen function intstead of length.
use strlen(a), it will work.
also add this line before main function
#include <string.h>
0
yes you can, because String is actually the array of characters. :)