I'm a newbie to C programming and I have a problem. Here is my problem: I want to use the function 'toupper' so that when we type a letter it automatically becomes upper-case. I want to make the letter upper-case when we type it, not when it shows in the output.
So that it just looks like this when we run the program:
Choose a letter (A/B/C) : a
(when we type a
it automatically becomes A. Example under this comment.)
Choose a letter (A/B/C) : A
(Upper-cased automatically)
This is A
(output)
Here is my current code:
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main()
{
char a;
printf("(A/B/C): ");
scanf("%c", &a);
printf("%c", a);
}
Thanks in advance :D
...
I really need your help