Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char *str = "Hello World!\n";
- int main ()
- {
- int Laenge = 0;
- char *temp;
- temp = str;
- while ( *temp != '\0' )
- {
- temp++;
- Laenge++;
- }
- printf("%c: %d", *str, Laenge);
- fflush(stdin);
- getchar();
- return 0;
- }
Add Comment
Please, Sign In to add comment