Q. What is the output of the following code?
Code:#include <stdio.h>
int main() {
char str[] = "Hello";
printf("%c", *str);
return 0;
}
β
Correct Answer: (A)
H
Explanation: *str gives the first character of the string.