Q. What will be the output of the code below?
Code:int main() {
char str[] = "Hello";
printf("%c", *str);
return 0;
}
β
Correct Answer: (B)
H
Explanation: *str points to the first character of the string, which is 'H'.