strings
Apa itu strings?
Contoh Pengunaan
#include <stdio.h>
#include <string.h>
int main() {
char key[20];
printf("Enter key: ");
scanf("%19s", key); // Membaca input maksimal 19 karakter
if (strcmp(key, "secret") == 0) {
printf("Access Granted\n");
} else {
printf("Access Denied\n");
}
return 0;
}Last updated