0 votes 0 votes What is the output for following code and how integer value can be assigned to a character value? #include <stdio.h> int main() { char a = 30, b = 40, c = 10; char d = (a * b) / c; printf ("%d ", d); return 0; } Shashank Kumar Mishr asked May 18, 2017 Shashank Kumar Mishr 449 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Output:- 120. Akashkumar answered May 20, 2017 Akashkumar comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes internally char is represented as integers, so it doesnt make a difference A_i_$_h answered Jun 18, 2017 A_i_$_h comment Share Follow See all 0 reply Please log in or register to add a comment.