Q. What will this code output?
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, which is 'H'.