Guest User

Untitled

a guest
Jul 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. char *str = "Hello World!\n";
  4.  
  5. int main ()
  6. {
  7. int Laenge = 0;
  8. char *temp;
  9. temp = str;
  10.  
  11. while ( *temp != '\0' )
  12. {
  13. temp++;
  14. Laenge++;
  15. }
  16.  
  17. printf("%c: %d", *str, Laenge);
  18.  
  19.  
  20. fflush(stdin);
  21. getchar();
  22. return 0;
  23. }
Add Comment
Please, Sign In to add comment