CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

String Length Output

C quiz · Question 22
mediumStrings

What does this program print?

Code

1#include <stdio.h>
2#include <string.h>
3 
4int main() {
5 printf("%d", (int)strlen("hello"));
6 return 0;
7}