Question: In C language Prompt the user to enter a string of characters and hit enter. Your would be writing a program to parse each character.
In C language
Prompt the user to enter a string of characters and hit enter.
Your would be writing a program to parse each character. If there are duplicates , you program will stop and print duplicate charcter entered.
You would not be using any arrays.
A skeleton program is given to you here.
unsigned int temp = 0;
char ch;
printf ( "enter a string ");
while ( ( ch = getchar ( ) ) != ' ' ) {
}
When you find a duplicate char, print duplicate found and exit the program
or print all characters are unique
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
