0
What is the output of the following C program?
#include <stdio.h>
#include <string.h>
int main() {
char s[] = "DSSSB";
printf("%d %d", (int)strlen(s), (int)sizeof(s));
return 0;
}- A5 5
- B5 6
- C6 6
- D6 5
Correct answer: B
What is the output of the following C program?
#include <stdio.h>
#include <string.h>
int main() {
char s[] = "DSSSB";
printf("%d %d", (int)strlen(s), (int)sizeof(s));
return 0;
}