Re: Cannot return values of char variable
- From: Chris Dollin <chris.dollin@xxxxxx>
- Date: Fri, 03 Nov 2006 13:49:06 +0000
Pedro Pinto wrote:
I can do that inside main. What i can't do is with divide:
char divide(char search_string[], char *array[], char *delimiter)
and return the string you printed! Can this be done?
No. You /cannot/ return a string from a function with return type
`char`. Surely this is obvious?
--
Chris "unhashedup hashed up hashing" Dollin
"Life is full of mysteries. Consider this one of them." Sinclair, /Babylon 5/
.
- References:
- Cannot return values of char variable
- From: Pedro Pinto
- Re: Cannot return values of char variable
- From: T.M. Sommers
- Re: Cannot return values of char variable
- From: Pedro Pinto
- Re: Cannot return values of char variable
- From: mark_bluemel
- Re: Cannot return values of char variable
- From: Pedro Pinto
- Re: Cannot return values of char variable
- From: Prasad
- Re: Cannot return values of char variable
- From: Pedro Pinto
- Cannot return values of char variable
- Prev by Date: Re: Out-of-bounds nonsense
- Next by Date: scanf hangs when taking multiple inputs in a char array
- Previous by thread: Re: Cannot return values of char variable
- Next by thread: Re: Cannot return values of char variable
- Index(es):
Relevant Pages
|
|