NWY Posted November 12, 2006 at 02:56 PM Report #63838 Posted November 12, 2006 at 02:56 PM Olá ! A minha dúvida é a seguinte... Alguem me explica porque é que algumas funções tem um asterisco (ex: char*funcao(char s[])).Qual é o significa e pra que serve ? p.s:sei muito pouco de apontadores.
Rui Carlos Posted November 12, 2006 at 03:42 PM Report #63849 Posted November 12, 2006 at 03:42 PM a função 'char f(...)' devolve um caracter, enquanto que a função 'char* f(...)' devolve um apontador para um ou vários caracteres. é útil, por exemplo, quando queres devolver uma string. Rui Carlos Gonçalves
NWY Posted November 13, 2006 at 02:49 PM Author Report #64078 Posted November 13, 2006 at 02:49 PM era bem o que eu pensava! obrigado.assunto resolvido [[]]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now