Skip to content

Commit

Permalink
Create tawanchaiii.c (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
tawanchaiii authored Oct 5, 2023
1 parent 746d547 commit e8b35ba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions C/tawanchaiii.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Simply method but don't have anyone do it.
#include <stdio.h>
#include <string.h>

void changeCoffeetoCode(char* str){
str[2] = 'd';
str[3] = 'e';
str[4] = '\0';
printf("%s\n", str);
}


int main() {
char str[] = "Coffee";
changeCoffeetoCode(str);
return 0;
}

0 comments on commit e8b35ba

Please sign in to comment.