Quiz on Strings

This short quiz tests the concepts of strings as explained in this chapter!

1

Take a look at the code below. What will be the size of s printed?

int main(void) {

  char s [] = "table";

  printf("s is %ld elements long\n", sizeof(s));

	return 0;
}
A)

5

B)

7

C)

6

D)

None of the above

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