C Program to Find the Length of a String Using Pointers
#include <stdio.h>
#include <string.h>
int main() {
char str [] = "Hello World";
int length;
length = strlen (str);
printf("Length of the string is: %d\n", length);
return 0;
}
0 टिप्पणियाँ:
Post a Comment