Hi,
I wanted to find out how i would point to the array arr in function get(char *p) so that i ould print the contents of this array.
Your help will be appreciated.
int main(){
char * ptr = NULL:
get(ptr);
printf("contents: %s:, ptr);
}
void get(char *p){
char [5]mm = NULL;
int i;
for(ii = o;i <5;i++){
mm = i;
}
p = mm; /*I'm not sure about this part */
}
I wanted to find out how i would point to the array arr in function get(char *p) so that i ould print the contents of this array.
Your help will be appreciated.
int main(){
char * ptr = NULL:
get(ptr);
printf("contents: %s:, ptr);
}
void get(char *p){
char [5]mm = NULL;
int i;
for(ii = o;i <5;i++){
mm = i;
}
p = mm; /*I'm not sure about this part */
}