   Gosh ! 2D int array
  #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 207744why is this ? plz help~~~~ thx.   
  Array indices are 0 based in C and C++, so 2 is an invalid index for the first dimension (valid indices would be 0 or 1).Also, since the array holds ints, and not int pointers, trying to dereferece the value is invalid.   ;  An element of the 2D array such as a[0][0] would be an integer.Thus *a[0][0] attempts to dereference an integer which isn't valid without some extremely sketchy typecasting and certainly isn't what you want in this situation.You want a[2][8].However your array was defined as a[2][13] - meaning the maximum 1st index is 1, not 2.  Your reading out of bounds of your array and thus getting random junk   ;  THX guys !  That worked !I guess I was dizzy since I've been C++ing for over 9 hrs.. and is still going..   