C_U1p7.c

#include <stdio.h> #include <conio.h> void main() { char s[1000], i; clrscr(); printf("Enter a string: "); gets(s); for(i = 0; s[i] != '\0'; i++); printf("Length of string: %d", i); printf("Length of string: %s", s); getch(); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.