Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider a two dimensional array X[−10&... Start Learning for Free
Consider a two dimensional array X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?
    Correct answer is '490'. Can you explain this answer?
    Most Upvoted Answer
    Consider a two dimensional array X[−10…5,7…15] in ...
    We know that,
    Range of given array:
    [−10…5,7……15]
    Old location (Given):
    A[2][10]
    A[−10][7] = 250
    Number of rows = 5 − ( − 10) + 1
    = 16
    Number of columns = 15 − 7 + 1
    = 9
    Array size:
    A16×9
    New range:
    [0…15,0…8]
    New location:
    A[2 + 10][10 − 7] = A[12][3]
    Size of data = 4
    A[0][0] = 250
    Formula:
    A[n][m] = A[0][0] + ( Row size  × m + n) ×  Size of cell
    Now,
    A[12][3] = 250 + (16 × 3 + 12) × 4
    A[12][3] = 250 + 60 × 4
    A[12][3] = 490
    Old location of A[ − 10][7] =  New location of A[12][3] = 490.
    Hence, the correct answer is 490.
    Free Test
    Community Answer
    Consider a two dimensional array X[−10…5,7…15] in ...
    Consider a two dimensional array X[m][n], where m represents the number of rows and n represents the number of columns.
    Explore Courses for Computer Science Engineering (CSE) exam

    Top Courses for Computer Science Engineering (CSE)

    Consider a two dimensional array X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?Correct answer is '490'. Can you explain this answer?
    Question Description
    Consider a two dimensional array X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?Correct answer is '490'. 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 X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?Correct answer is '490'. 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 X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?Correct answer is '490'. Can you explain this answer?.
    Solutions for Consider a two dimensional array X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?Correct answer is '490'. 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 X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?Correct answer is '490'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider a two dimensional array X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?Correct answer is '490'. Can you explain this answer?, a detailed solution for Consider a two dimensional array X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?Correct answer is '490'. Can you explain this answer? has been provided alongside types of Consider a two dimensional array X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?Correct answer is '490'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider a two dimensional array X[−10…5,7…15] in which staring location is at 250. If every data of a given array takes 4 byte of space and store in column major order, then what will be the location of A[2][10]?Correct answer is '490'. 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