0
What happens when the following code executes?
#include <stdio.h>
int main() {
char buffer[50];
int n = sprintf(buffer, "Hello, World!");
printf("%d %s", n, buffer);
return 0;
}- APrints '13 Hello'
- BPrints '12 Hello'
- CPrints '12 Hello, World!'
- DPrints '13 Hello, World!'
Correct answer: D