C - Arrays

page 1 out of 2

page 1 out of 2


Question 1     

Assume the output of below code:

#include<stdio.h>
Void f(int a[1][])
{
	a[0][1] = 3;
int i=0, j=0;
for(i = 0; i<3;i++)
for(j=0;j<3;j++)
printf(“%d”, a[i][j]);
	}
	void main()
{
	int a[1][2]={0};
	f(a);
}






Question 2     

kxxxdddddddddddddddd

lkdfnokfg






Question 3     

What will be the address of the arr[2][3] if arr is a 2-D long integer array of 4 rows and 5 columns and starting address of the array is 2000?






Question 4     

A one dimensional array has indices 1 …. 75. Each element is a string and takes up four memory words. The array is stored at location 1120 decimal. The staring address of A[40] is






Question 5     

Comment on the below statements with respect to A and B

int *a1[8];
int *(a2[8]);
A. Pointer to an array
B. Array of pointers





Question 6     

Size of the array need not be specified, when







Question 8     

Are the expressions arr and &arr same for an array of 10 integers?




Question 9     

The information about an array used in a program will be stored in






Question 10     

Array is an example of ______ type of memory allocation.





page 1 out of 2

page 1 out of 2


Sign Up Page

Oops!!

To view the solution need to Login



Score : 0 / 0
L
o
a
d
i
n
g
.
.
.