Answers for "String as Parameter on C"

0

String as Parameter on C

void function(char arr[])
//void function(char *arr)
{
   arr[0] = 'X';
}        
int main()
{
   function("MyString");    
   return 0;
}
Posted by: Guest on April-29-2021

Browse Popular Code Answers by Language