Domanda di colloquio di 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);

Risposta di colloquio

Anonimo

2 ago 2024

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

1