• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ExamLab Question

 
Neil Muya
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,


I just encountered a declaration of an array in Exam Lab that looks like this:



well it's legal.

Just can't understand why?

Can anybody tell me the meaning of the declaration,

Because for what I see , it's reference is a one-dimension array and the declaration is two-dimensions.

Thank You!
 
gvarsh Varshney
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is perfectly legal , if you look at this assgnment it is actually assigning the first element (which is a single dimentional array) of a annonymus two dimentional array to a one dimentional array reference it2.
hope it helps !


--Gaurav
 
Neil Muya
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ow okay got it. Thank You gvarsh! Mock Exams are really complexed. Hope I could overcome those questions on the day of my exam.


Thanks Again!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic