Kizspy | Question: 45
(Choose 1 answer)
What is the output of the following code snippet?
#include <stdio.h>
int main() {
char char_array[] = {'a', 'b', 'c', 'd', 'e'};int array_size = sizeof(char_array) / sizeof(char);for (int i = 0; i < array_size; i++) { char_array[i] = char_array[i] + 1;}for (int i = 0 0; i < array_size; i++) { printf("%c", char_array[i]);}
return 0;
}
A. bcdef
B. abcde
C. 98 99 100 101 102
D. cdefg