aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming and Data Structures - GATE Practice
  • Consider the following declaration of a two-dimensional a...
Multiple choice

Consider the following declaration of a two-dimensional array in C: Char a[100][100] Assuming that the main memory is byte-addressable and that array is stored starting form memory address 0, the address of a [40] [50] is

  1. 4040

  2. 4050

  3. 5040

  4. 5050

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Keep practicing — related questions

  • What is the result of the following program? int a[2][2][2] = { 10, 2, 3, 4, 5, 6, 7, 8 }; printf("%d",***a);
  • #include main() { int a[2][2][2] = {{10,2,3,4},{5,6,7,8}}; int *p,*q; p=&a[2][2][2]; *q=***a printf("%d----...
  • #include main (){ char c[] = "Hello"; char *p = "Hello"; printf("Size of c: %d Addr of c:%x\n",sizeof(c),c); }
  • If there is an array Num[50] of integer type with size 50, then what is the correct way to store the addres...
  • 1)main() { int a[2][3][2]={{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(“%u %u %u %d”,a,*a,**a,***a); p...
  • main() { int a[5] = {10,20,30,40,50}; char *p; p=(char *)a; printf("%d\n",a); }
  • void main() { int a[2][3]={{1,2,3},{4,5,6}}; printf("%d\n",++**(a+1)); }
  • void main() { int realarray[2]={1,2}; int *array = &realarray[-1]; int i; for(i=0;i<2;i++) { printf(" %d",*...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy