Advertisement
metalx1000

GCC String array loop

Jul 2nd, 2016
652
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include<stdio.h>
  2. #include <string.h>
  3.  
  4. void main(){
  5.   int i;
  6.   i = 0;
  7.   char s[] = "Hello World";
  8.   for (i = 0;i < strlen(s);i++){
  9.     printf("%c",s[i]);
  10.   }
  11.  
  12.   printf("\n");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement