Gosh ! 2D int array

Joined
Sep 6, 2007
Messages
7
Reaction score
0
#include <iostream>
using namespace std;

int main()
{

int a[2][13] ={
{90, 23, 26, 31, 50, 71, 39, 31, 61, 80, 11, 20, 41},
{50, 31, 29, 31, 50, 31, 30, 61, 34, 70, 38, 90, 41},
};

cout << *a[2][8] <<endl;
return 0;
}
-----------
my Dev-C++ says ... invalid type argument of `unary *'
if i use cout << a[2][8] <<endl; , it says 207744

why is this ? plz help~~~~ thx.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top