Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- void printString(char str[]) {
- printf("Print as string: ");
- puts(str);
- printf("Print as chars: ");
- for(int i=0; i<strlen(str); i++)
- putchar(str[i]);
- }
- int main(){
- printf("** Welcome to the Double Dutch game **\n");
- char myString[36] = "charcharcharcharchar";
- printString(myString);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement