if the address of a[1,1] and a[2,1] are 1000 and 1010
respectively and each occupies 2 bytes then the array has
been stored in what order?
Answer Posted / ....................
it's order is a[5,5] because it takes 2 bytes for every
elements i.e a[1,1]=1000 a[1,2]=1002 a[1,3]=1004
a[1,4]=1006 a[1,5]=1008 a[2,1]=1010..............
| Is This Answer Correct ? | 49 Yes | 8 No |
Post New Answer View All Answers
Why array is used in c?
How can I change the size of the dynamically allocated array?
What is the easiest sorting method to use?
Is fortran faster than c?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Why ca not I do something like this?
What is string length in c?
What are local variables c?
What does return 1 means in c?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
Disadvantages of C language.
Explain is it better to bitshift a value than to multiply by 2?
How can a program be made to print the line number where an error occurs?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none