What is the output of this program? int main(){
char arr [20];
int i;
for (i = 0; i < 10; i++)
* (arr + i) = 65 + 1; * (arr + i) = \0′;
cout << arr;
return 0;
(A) ABCDEFGHIJ
(B) АААААААААА
(C) 0123456789
(D) None of the above
Answers
Answered by
2
The (*fn) represents a pointer to a function and char* as arguments and returning int from the function. So according to that, the above syntax represents a pointer to a function taking a char* as an argument and returning int.
I hope this will help you
If not then comment me
XD
Similar questions
Chemistry,
6 months ago
Computer Science,
6 months ago
English,
6 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago
Physics,
1 year ago