Hi
How to pass string as argument in function . I understand array of strings program in c example
This is my attempt to solve problem
How to pass n string's as argument in function?
How to pass string as argument in function . I understand array of strings program in c example
C:
#include<stdio.h>
int main (void)
{
unsigned int i=0;
unsigned char array[15]= "Hello Forum";
while(array[i] != '\0')
{
printf("print array element : %c \n", array[i]);
i++;
}
return 0;
}
C:
#include<stdio.h>
void message (unsigned char string [])
{
printf("print string : %s \n", string);
}
int main (void)
{
return 0;
}
How to pass n string's as argument in function?