halfbarrel
Programmer
Hello,
I was wondering if someone could kind of tell me what the second line bellow would be outputting:
x=(char) *myinputval++; /* get input char */
x=x * x;
The first line I know pulls just a character for example 'P', but I don't understand multiplying a character by itself. What would this output. Is it hex or something? Thanks for any help I am new to the c world and have been trying to print the value out with printf("%c", x) to see what is there, catting the output to a file, and hexdumping it, but I think it would be alot of help if someone would just explain this one to me.
Thanks again,
Chris.
I was wondering if someone could kind of tell me what the second line bellow would be outputting:
x=(char) *myinputval++; /* get input char */
x=x * x;
The first line I know pulls just a character for example 'P', but I don't understand multiplying a character by itself. What would this output. Is it hex or something? Thanks for any help I am new to the c world and have been trying to print the value out with printf("%c", x) to see what is there, catting the output to a file, and hexdumping it, but I think it would be alot of help if someone would just explain this one to me.
Thanks again,
Chris.