Click here to Skip to main content
15,895,880 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Why *a have same value as a?
what is meant by *a here?

What I have tried:

C++
#include<stdio.h>
int main()
{
    int a[3][3];
    printf("%u       %u",a,*a);
    return 0;
}
Posted
Updated 3-Jun-21 19:48pm
Comments
Richard MacCutchan 4-Jun-21 5:42am    
Because *a is the address of the first row, which happens to be the same as the address of the array.
_-_-_-me 4-Jun-21 7:13am    
okay, thank you very much . I got it now.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900