int main()
{
char str[5] = "ABC";
cout << str[5] ;
cout << str;
return 0;
}
What is the difference between *cout<
Answers
Answered by
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