Hi,
I've been working in C++ and java .... i m fond of using String data type .... but in C I've to use char array as string and have to pass it to a function as string
its creating some confusions plz help
void function( charArray comes here )
{
char localArray[10]="my String";
// here i have to use that charArray as string and have to compare it with
// localArray.
}
int main()
{
char charArray[10];
function( pass charArray here );
return 0;
}
plz provide the syntax to pass, get and compare charArray.
Thanks.