Study of arithmetic operation on characters.

#include <stdio.h>

int main(void)
{
/* variable declaration statements */
char ch1, ch2, res;

/* Assign values to variables num1 and num2 */
ch1 = 'A';
ch2 = 'Z';

/* Perform various arithmetic operations */
res = ch1 + ch2;
printf("\n %c + %c = %c", ch1, ch2, res);

return 0;
}

No comments:

Post a Comment

kiss on google ads if you are anonymous because your ip is trackable.thank you.

......from.admin