// EEL3801-CProject.cpp : 


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char* argv[]) {
    char *str, *str2;
    int value;
    str = (char*) malloc(100);
    str2 = (char*) malloc(200);
    // Input and output
    printf("Enter the value:");
    scanf("%d", &value);
    // entering a string
    printf("Enter the string:");
    scanf("%s", str);
    printf("The string was: %s\n", str);
    printf("The lenght of the string: %d\n", strlen(str));
    // entering the second string
    printf("Enter the second string:");
    scanf("%s", str2);
    // comparing the strings
    printf("Comparing str with str2 = %d\n", strcmp(str, str2));
    
    // cleaning up
    free(str);
    free(str2);
}



