I recently encountered with an interview question. I did not understand the behaviour of printf function in this case
#include <stdio.h>
int main() {
int k = printf("String");
printf("%d",k);
}
Run Code Online (Sandbox Code Playgroud)
Expected result : Compilation Error
Output : String6
Why is the output String6?