Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider a two dimensional array A[1…1... Start Learning for Free
Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).
    Correct answer is '1044'. Can you explain this answer?
    Most Upvoted Answer
    Consider a two dimensional array A[1…10][3….8] that is c...
    Two-dimensional arrays are also known as matrices. They are defined as a collection of elements arranged in rows and columns. Each element in the array is accessed using two indices: the row index and the column index.

    In the case of the given array A[1, n], it represents a matrix with only one row and n columns. This means that there is only one row in the matrix, and the number of columns can vary.

    The size of the array A is defined as A[1, n], where 1 represents the row index and n represents the number of columns. The row index is fixed at 1, meaning that there is only one row in the matrix.

    To access an element in the array A, you would use the syntax A[1, j], where j represents the column index. This allows you to access any element in the row, regardless of the number of columns.

    For example, if A[1, n] represents a matrix with one row and 5 columns, you can access the element in the second column using A[1, 2].

    Overall, the two-dimensional array A[1, n] represents a matrix with one row and a variable number of columns.
    Free Test
    Community Answer
    Consider a two dimensional array A[1…10][3….8] that is c...
    Given,
    Number of rows = 10
    Number of columns = 6
    Starting of row indexing (n) = 1
    Starting of column indexing (m) = 3
    In the case of column major order,
    Address of A[i][j] = ((j − m) ×  no. of rows + (i − n) ×  size of element + base address of A.
    So, address of A[i][j] = ((7 − 3) × 10 + (5 − 1)) + 1000
    = 1044
    Hence, the correct answer is 1044.
    Explore Courses for Computer Science Engineering (CSE) exam

    Similar Computer Science Engineering (CSE) Doubts

    Top Courses for Computer Science Engineering (CSE)

    Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).Correct answer is '1044'. Can you explain this answer?
    Question Description
    Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).Correct answer is '1044'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).Correct answer is '1044'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).Correct answer is '1044'. Can you explain this answer?.
    Solutions for Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).Correct answer is '1044'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
    Here you can find the meaning of Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).Correct answer is '1044'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).Correct answer is '1044'. Can you explain this answer?, a detailed solution for Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).Correct answer is '1044'. Can you explain this answer? has been provided alongside types of Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).Correct answer is '1044'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider a two dimensional array A[1…10][3….8] that is column index ranges from 3 to 8 and row index ranges from 1 to 10. Now suppose element are arranged in column major order. If base address of A is 1000 then address of element A[5][7] will be _________ (Assume size of each element is 1).Correct answer is '1044'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
    Explore Courses for Computer Science Engineering (CSE) exam

    Top Courses for Computer Science Engineering (CSE)

    Explore Courses
    Signup for Free!
    Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
    10M+ students study on EduRev