Computer Science, asked by rofina27, 3 months ago

char ch[ ]={=a', 'b, 'c','\0'};
int sum=ch[1]+ch[2];
What is the value of sum?
(a) 195
(b) 197
(c) ab
(d) error​

Answers

Answered by atrs7391
0

char ch[ ]={=a', 'b, 'c','\0'};  int sum=ch[1]+ch[2];

What is the value of sum?

(a) 195

(b) 197

(c) ab

(d) error​ ✔✔

Answered by prabhatmdi8953
0

Answer: B[ 197 ]

Explanation:  Here is the full program of this code....

 #include<stdio.h>

   int main(){

   char ch[ ]={'a','b','c','\0'};

   int sum=ch[1]+ch[2];

   printf("Value of sum = %d",sum);

   return 0;

}

OUTPUT-;

Value of sum = 197

Similar questions