#include <stdio.h>
#include <conio.h>
int f(char a[],char c){
    int count = 0;
    int sayi=0;
    while (a[count]!='\0'){
          //5printf("\n%c",a[count]);
          if(a[count]==c)
                           sayi ++;
          count ++;
    }
    return sayi;
}
void ters (char a[]){
     int i =0;
     for(i=0;a[i]!='\0';i++);
     for(int j = i;j>=0;j--){
             printf("\n%c",a[j]);
     }    
}
void birles(char a[],char b[]){
     int i = 0;
     while(a[i]!='\0'){
                       printf("%c",a[i]);
                       i++;
     }
     i=0;
     while (b[i]!='\0'){
                        printf("%c",b[i]);
                        i++;
     }
}
char *  birlestir(char a[], char b[]){
     char son[100];
     int i = 0;
     while(a[i]!='\0'){
                      son[i]=a[i];
                      i++;
     }
     int j = 0;
     while(b[j]!='\0'){
                       son[i]=b[j];
                       i++;
                       j++;
     }
     son[i]='\0';         
     return son;
}
int esitmi(char a[],char b[]){
    int esit=1;
    for(int i = 0;a[i]!='\0'&&b[i]!='\0';i++){
            if(a[i]!=b[i]){
                          esit=0;     
            }
    }
    return esit;
}
int main(){
   // printf("%s",birlestir("ali","veli"));
    //printf("\n kac kere gectigi :  %d",f("babababa",'b'));
   ters("deneme");
    printf("\nbirlesmis hali : %s",birlestir("ali","veli"));
    if(esitmi("ali","veli")){
                           printf("\nhata");
    }
    if(esitmi("ali","ali")){
                          printf("\nesitler");
    }
    char a[10]="ali";
    char b[10]="ali";
    if(a==b){
             printf("\nesitler");
    }
    else{
             printf("\nesit degiller");
    }
    
    getch();    
}

