Hello I am new to coding and I wrote this few lines to receive only lowercase but my compiler only gives me this warning:
prog.c:12:15: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
b = ("%#x", a) + 32;
#include<stdio.h>
int main()
{
char a;
int b;
printf("Bitte geben Sie einen Grossbuchstaben ein: ");
scanf("%c", &a);
b = ("%#x", a) + 32;
printf("%c", b);
}
question from:https://stackoverflow.com/questions/65943742/compiler-warning-left-hand-comma-c