Quiz on Strings
Test yourself on the concepts of strings learned in this chapter.
1
What value will be printed as the size of s
?
int main(void) {
char s[] = "table";
printf("s is %ld elements long\n", sizeof(s));
return 0;
}
A)
5
B)
7
C)
6
Question 1 of 30 attempted
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy