i need to merge two arrays..assign them to another array..but in the third array..no similar values shall be printed..i badly need help..
a big big thanks in advance..

Recommended Answers

All 6 Replies

Your post gave me an adrenaline rush. Honestly!:icon_eek:

im so sorry about that..
i just need it so badly..in just a few hours i need it for a class..but my logic aren't working in the last few weeks..
can you help me please??

and to be clear..i just need a simple c program..just enough for a 1st year student like me..Ü

#include<stdio.h>
#include<conio.h>

void MERGE(int first[],int second[]);
int array_first[5],array_second[5];
int i,j;

void main()
{
clrscr();
printf("\n\nenter first 5 values:\n");
   {for (i=0;i<5;i++)
    scanf("%d",&array_first[i]);}

printf("enter second 5 values:\n");
   {for (j=0;j<5;j++)
    scanf("%d",&array_second[j]);}

printf("first set:");
for (i=0;i<5;i++)
    {printf("%d\t",array_first[i]);}

printf("\nsecond set:");
for (j=0;j<5;j++)
    {printf("%d\t",array_second[j]);}
MERGE (array_first,array_second);

getch();
}

void MERGE(int first[],int second[])
{?????????????}

and i need these to be sorted..but i'm fine with the sorting..i just need the ones to be sorted..Ü

im sorry for the disturbance..and for the not-so-clear problem i gave you..

yah..so much

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.