Write a C program to print the string and its length using functions
#include <stdio.h> #include <string.h> int main() { char* str = "Hello, world!"; printf("The string \"%s\" has length %d", str, strlen(str)); return 0; }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment