Skip to content

Instantly share code, notes, and snippets.

@lucasmezencio
Created April 23, 2012 22:15
Show Gist options
  • Save lucasmezencio/2474232 to your computer and use it in GitHub Desktop.
Save lucasmezencio/2474232 to your computer and use it in GitHub Desktop.
Resolução problema C
/**
* Faça este programa imprimir 13 alterando APENAS o corpo da função "function"
* NÃO VALE ALTERAR NADA NA FUNÇÃO main
*/
void function() {
printf("%d\n", 13);
exit(0);
}
int main() {
int x;
x = 13;
function();
x++;
printf("%d\n", x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment