Pergunta de entrevista da empresa Arista Networks

1. Predict output of different printf() variations, like char* str = "12345" printf("%d", str); printf("%d", *str); printf("%c", str); printf("%c", *str); printf("%s", str); printf("%s", *str);

Resposta da entrevista

Sigiloso

2 de ago. de 2024

Failed properly predict for some of them, but managed to answer later, after seeing program output.

1