@all : I Think the output depends on whether it is row major or column major representation in memory . Does he row major or column major representations matter in calculations above???
On Aug 6, 11:49 pm, aditi garg <aditi.garg.6...@gmail.com> wrote: > oh @ akshay y ru doing 10x4??? 10 is the no of rows not the columns so it > shud be 15x3+4...and by multiplying by 4(in 10x4) ur taking it to the 5th > row ie A[4][4] its only A[3][4]... > i hope its clear now.... > > On Sun, Aug 7, 2011 at 12:14 AM, akshay khatri > <akshaykhatri...@gmail.com>wrote: > > > > > > > > > > > > > On 6 August 2011 23:56, aditi garg <aditi.garg.6...@gmail.com> wrote: > > >> @akshay: what i meant ws suppose the array strted from 0000 in > >> decimal...so A[3][4] wud be at 0049 and B[3][4] will be at 0196 > >> convert dese 2 values to hex it gives 31 and C4 respectively...now base > >> address is 1000 and 2000 instead if 0000 so add the base address and u get > >> the ans 1031 and 20C4...i hope its clear now... > > > I still don't get how you got the figures of 49 and 196 > > > I calculated as follows > > A[3][4] = 10x4 + 4 = 44 bytes > > B[3][4] = (10x4 + 4 )x4 = 176 > > >> On Sat, Aug 6, 2011 at 11:49 PM, akshay khatri <akshaykhatri...@gmail.com > >> > wrote: > > >>> On 6 August 2011 23:40, aditi garg <aditi.garg.6...@gmail.com> wrote: > > >>>> A[3][4] wud be in the 4th row...so strtung address of 4th row wud be > >>>> 46..and thn 4th element wud be at 49...similarly fr B 180 fr the frst 3 > >>>> rows > >>>> + 16 fr the 4th elemnet so 196 > > >>> How does it start from 46 and 180 ? > >>> as per my knowledge, 0x1000 = 4096 and 0x2000 is 8192 > > >>>> On Sat, Aug 6, 2011 at 11:37 PM, akshay khatri < > >>>> akshaykhatri...@gmail.com> wrote: > > >>>>> how is that 49 bytes and 196 bytes > >>>>> shouldn't it be 44 and 176 bytes respectively > > >>>>> On 6 August 2011 23:26, Ram Chauhan <rb.chau...@gmail.com> wrote: > > >>>>>> 1049 and 1098 > > >>>>>> On Sat, Aug 6, 2011 at 11:09 PM, aditi garg < > >>>>>> aditi.garg.6...@gmail.com> wrote: > > >>>>>>> CHAR A[10][15] AND INT B[10][15] IS DEFINED > >>>>>>> WHAT'S THE ADDRESS OF A[3][4] AND B[3][4] > >>>>>>> IF ADDRESS OF A IS OX1000 AND B IS 0X2000 > > >>>>>>> -- > >>>>>>> You received this message because you are subscribed to the Google > >>>>>>> Groups "Algorithm Geeks" group. > >>>>>>> To post to this group, send email to algogeeks@googlegroups.com. > >>>>>>> To unsubscribe from this group, send email to > >>>>>>> algogeeks+unsubscr...@googlegroups.com. > >>>>>>> For more options, visit this group at > >>>>>>>http://groups.google.com/group/algogeeks?hl=en. > > >>>>>> -- > >>>>>> You received this message because you are subscribed to the Google > >>>>>> Groups "Algorithm Geeks" group. > >>>>>> To post to this group, send email to algogeeks@googlegroups.com. > >>>>>> To unsubscribe from this group, send email to > >>>>>> algogeeks+unsubscr...@googlegroups.com. > >>>>>> For more options, visit this group at > >>>>>>http://groups.google.com/group/algogeeks?hl=en. > > >>>>> -- > >>>>> You received this message because you are subscribed to the Google > >>>>> Groups "Algorithm Geeks" group. > >>>>> To post to this group, send email to algogeeks@googlegroups.com. > >>>>> To unsubscribe from this group, send email to > >>>>> algogeeks+unsubscr...@googlegroups.com. > >>>>> For more options, visit this group at > >>>>>http://groups.google.com/group/algogeeks?hl=en. > > >>>> -- > >>>> Aditi Garg > >>>> Undergraduate Student > >>>> Electronics & Communication Divison > >>>> NETAJI SUBHAS INSTITUTE OF TECHNOLOGY > >>>> Sector 3, Dwarka > >>>> New Delhi > > >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups "Algorithm Geeks" group. > >>>> To post to this group, send email to algogeeks@googlegroups.com. > >>>> To unsubscribe from this group, send email to > >>>> algogeeks+unsubscr...@googlegroups.com. > >>>> For more options, visit this group at > >>>>http://groups.google.com/group/algogeeks?hl=en. > > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "Algorithm Geeks" group. > >>> To post to this group, send email to algogeeks@googlegroups.com. > >>> To unsubscribe from this group, send email to > >>> algogeeks+unsubscr...@googlegroups.com. > >>> For more options, visit this group at > >>>http://groups.google.com/group/algogeeks?hl=en. > > >> -- > >> Aditi Garg > >> Undergraduate Student > >> Electronics & Communication Divison > >> NETAJI SUBHAS INSTITUTE OF TECHNOLOGY > >> Sector 3, Dwarka > >> New Delhi > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Algorithm Geeks" group. > >> To post to this group, send email to algogeeks@googlegroups.com. > >> To unsubscribe from this group, send email to > >> algogeeks+unsubscr...@googlegroups.com. > >> For more options, visit this group at > >>http://groups.google.com/group/algogeeks?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Algorithm Geeks" group. > > To post to this group, send email to algogeeks@googlegroups.com. > > To unsubscribe from this group, send email to > > algogeeks+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/algogeeks?hl=en. > > -- > Aditi Garg > Undergraduate Student > Electronics & Communication Divison > NETAJI SUBHAS INSTITUTE OF TECHNOLOGY > Sector 3, Dwarka > New Delhi -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.