1.write a program to merge the arrays
2.write efficient code for extracting unique elements from a
sorted list of array?
Answer Posted / jaggu
#include<stdio.h>
#include<conio.h>
main()
{
int a[5]={1,2,3,4,5},b[4]={-6,-7,-8,-9},i,j=0;
for(i=5;i<=5+4-1;i++)
{
a[i]=b[j];
j++;
}
for(i=0;i<9;i++)
printf("a[%d]=%d \t",i,a[i]);
getch();
}
| Is This Answer Correct ? | 17 Yes | 55 No |
Post New Answer View All Answers
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
How can you pass an array to a function by value?
What is the meaning of 2d in c?
What is the maximum no. of arguments that can be given in a command line in C.?
What does the message "automatic aggregate intialization is an ansi feature" mean?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is the difference between call by value and call by reference in c?
What is meant by inheritance?
Add Two Numbers Without Using the Addition Operator
What are actual arguments?
What is variable in c example?
Can we declare function inside main?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What is the difference between c &c++?