Jump to content
programmer1337

[Resolvido] Memoria

Recommended Posts

programmer1337

Boas Pessoal :)

Digam-me uma coisa a comparaçao de strings e mais custosa em termos de recursos que a comparaçao de strings certo?

Obrigado

CUMPS

Share this post


Link to post
Share on other sites
bubulindo

Eu acho que vou responder em C a esta pergunta:

int ret;

char a[] = "comparacao de strings\n";

char b[] = "comparacao de strings\n";

ret = strcmp(a, :) ;

if (ret == 0) printf ("Antes de aprenderes a programar, tens de aprender a comunicar...");


include <ai se te avio>

Mãe () {

}

Share this post


Link to post
Share on other sites
Deus

A comparação de string é mais custosa que a comparação de strings?

Já pareces o outro a dizer a diferença entre um bom jogador e um bom jogador  :)


Linguagens: C / Java / Prolog / Assembly / HTMLA aprender: Java

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.