Skip to main content

Concatenation Using Inbuilt Function

Concatenation Using Inbuilt Function

#include<string.h>
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
void main()
{
clrscr();
char a[100],b[100];
cout<<"enter the first string";
gets(a);
cout<<"enter the second string";
gets(b);
strcat(a,b);
cout<<a;
getch();
}



Comments

Popular posts from this blog

C++ Program Finding The Absolute Value

#include<iostream> using namespace std; int main() { cout<<" enter any number"; cin>>num; if(num>0) { cout<<"The absolute value of number is:"<< num; } else { cout<<"The absolute value of number is :"<< -(num); } return 0; } OUTPUT Enter Any number: 2 The absolute value of number is 2