|
-
Jan 24th, 2002, 01:31 PM
#1
Thread Starter
Addicted Member
newbie
void main()
{
int arr[4]={1,2,3,4};
cout<<arr;
char abc[4]="hel";
cout<<abc;
}
stupid Question..but still.. I wanna know why cout<<arr displays the address of the starting element of the array while cout<<abc displays the contents of the array??.. I mean shudnt all arrays have uniform features ?..kinda confusing fr beginers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|