A type conversion, also known as 'cast', is presented below. Using casts, propose programs to consert a numerical char, eg. '0', into a value, here 0, and its inverse function.
char c = 'X';
int i = (int)c; // i=88=ascii code of 'X'
char d = (int)(i+1); // d='Y'
Giving a letter c and a number n, define a program that shift the letter c from n in the ascii table (e.g 'a'+1 ='b', 'a'+2='c'). Nb. don't forget to use modulo %256
laurent thiry uha mulhouse france programming C algorithm data computer science
laurent thiry uha mulhouse france programming C algorithm data computer science
laurent thiry uha mulhouse france programming C algorithm data computer science
laurent thiry uha mulhouse france programming C algorithm data computer science
laurent thiry uha mulhouse france programming C algorithm data computer science
laurent thiry uha mulhouse france programming C algorithm data computer science
laurent thiry uha mulhouse france programming C algorithm data computer science
laurent thiry uha mulhouse france programming C algorithm data computer science
laurent thiry uha mulhouse france programming C algorithm data computer science
laurent thiry uha mulhouse france programming C algorithm data computer science
laurent thiry uha mulhouse france programming C algorithm data computer science