Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

1104


How can you pass an array to a function by value?

1130


What is the meaning of 2d in c?

1129


What is the maximum no. of arguments that can be given in a command line in C.?

1157


What does the message "automatic aggregate intialization is an ansi feature" mean?

1193


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1117


What is the difference between call by value and call by reference in c?

1168


What is meant by inheritance?

1092


Add Two Numbers Without Using the Addition Operator

832


What are actual arguments?

1105


What is variable in c example?

1081


Can we declare function inside main?

1009


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1538


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1078


What is the difference between c &c++?

1162