
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
C programming compare passwords. You can compare two strings with this example.
Typology: Summaries
1 / 1
This page cannot be seen from the preview
Don't miss anything!

#include <stdio.h> #include <string.h> int main() { char sfr1[30], sfr2[30]; printf("Şifrenizi Oluşturun: "); scanf("%s",&sfr1); printf("Şifrenizi Doğrulayın: "); scanf("%s",&sfr2); if(strcmp(sfr1,sfr2) == 0) { printf("Şifreniz oluşturuldu :)"); } else { printf("Şifreler Uyuşmuyor"); } return 0; }