thanks for your response.. i still have a problem... in the following code it is storing a chracters not the b chracters into c.. please tell me where im wrong :
Code:
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
void main()
{clrscr();
char a[100];
char b[100];
char c[200];
int s, i;
int count=1;
int countb=0;
cin.getline(a,100);
cin.getline(b,100);
for (i=0;a[i]!='\0';i++)
{count++;}
countb=count;
for (i=0;b[i]!='\0';i++)
{countb++;}
cout<<count<<endl;
cout<<countb<<endl;
for (i=0;i<count;i++)
{c[i]=a[i];}
int r=0;
for (i=count;i<countb;i++)
{
c[i]=b[r++];
}
puts(c);
getch();
}