Computer Science, asked by dixitram2005, 20 days ago

int main()
{
char str[5] = "ABC";
cout << str[5] ;
cout << str;
return 0;
}

What is the difference between *cout<

Answers

Answered by unofficialwork51
0

the first cout<<str[5] will print the value which is stored in 5th index of an array,

but cout<<str will print the address where array is stored in memory.

Similar questions
Math, 9 months ago