Hey,Code:#include <stdio.h> #include <conio.h> main() { char a,b; printf ("Enter the first character: "); scanf ("%c",&a); printf ("Enter the second character: "); scanf ("%c",&b); printf ("\n"); if (a>b) printf ("a is larger than b"); getch(); }
{Java-programmer, new to C, read tutorials, Googled, FAQed)
Problem: Run the code, and the software automatically assigns blank character to b {i think ASCII = 10}.
It doesn't even give me the chance to insert a value to b!
Why?
Thank for helping.