char c,a.b;
c='f';
a='s';
b='x';
int sum= C+a+b;
printf ("%d", sum);
}
Answers
Answered by
1
Answer:
complier give error because char can not add into int data type or one error declear char type use . insite of ,
Answered by
0
Given:
char c,a,b;
c='f';
a='s';
b='x';
int sum= c+a+b;
printf ("%d", sum);
Output:
337
Explanation:
c='f'
ASCII of character 'f' is 102
a='s'
ASCII of character 's' is 115
b='x'
ASCII of character 'x' is 120
sum = c + a + b
sum = 102 + 115 + 120
sum = 337
So, the final output is 337
Extra information:
ASCII of 0 - 9: 48 - 57
ASCII of A - Z: 65 - 90
ASCII of a - z: 97 - 122
Similar questions