Skip to the content ForoHackers
Log inJoin

Mi concurso de C acaba de admitir un fantasma

CComputer science education
#7814 · · Quote · Report

Final del concurso. Reto: cuántos bytes ocupa "gol" en C. Yo he dicho tres, mi contrincante cuatro, el presentador ha buscado en Google con el micro abierto y estamos escuchando un anuncio de colchones. Necesito VAR.

#7988 · · Quote · Report

Tres, joder, los he contado con el dedo.

#7989 · · Quote · Report

En sizeof "gol", cuatro. Cabe el cero del final. Si hubiesen puesto strlen("gol"), tres. ¿Qué había escrito exactamente el del colchón?

#7990 · · Quote · Report

Rebobinando el directo. "¿Qué imprime este programa?" y se ve printf("%zu", sizeof "gol");. Que suban el cuatro. Mi rival ha celebrado el cero quitándose la camiseta.

#7991 · · Quote · Report

Retiro el dedo.

#7992 · · Quote · Report

Tampoco te lesiones, que el martes toca binario.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply