Arista Networks Interview Question

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);

Interview Answer

Anonymous

Aug 2, 2024

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

1