Computer Science, asked by justheretocopy, 9 months ago

Create two arrays A and B of size 5 each and array C of size 10. Computer [arrays] [tenth grade]. Accept numbers into A and B. Fill the array C in such a way that all the odd positions of C are occupied by elements of A and the even positions are occupied by elements of B.

Answers

Answered by Anonymous
2

Answer:

a[-40]

int a[40]

float a[0 - 40]

None

Question 2

Which element is represented by a[10]?

10th

9th

11th

None

Question 3

Cell numbers of a dimensional array are also known as:

Answered by rasmikrishnan123
3

Answer:

#include<stdio.h>

#include<conio.h>

void main()

{

int a[5], b[5], c[10], i, j, k;

printf("Enter the values to first array");

for(i=1;i<=5;i+=1)

{

scanf("%d", &a[¡]);

}

printf("enter the values to second array");

for(j=1;j<=5;j+=1)

{

scanf("%d", &b[j]);

}

for(k=1;k<=10;k+=1)

{

if (k%2==1)

c[k]=a[i];

else

c[k]=b[j];

printf("%d", k);

printf("%d", c[k]);

}

getch();

}

Similar questions