#include #include #include void memoryAlloc (int a); int main(int argc, char* argv[]) { int choice; fputs("Please enter the maximum length of string: ",stdout); scanf("%d",&choice); memoryAlloc(choice); return 0; } void memoryAlloc (int a){ char* arr; arr = (char*)malloc( a * sizeof(char)); if (arr == NULL){ fputs("Failed to allocate memory!!!",stdout); exit(1); } fputs("Please enter strings: ",stdout); fgets(arr,sizeof(arr),stdin); // scanf("%s",arr); printf("Entered ...