Social Sciences, asked by rishab8332, 1 year ago

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 bikku29
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