Skip to content

My Techno World

Always be there

  • Home
  • Popular
  • Category
    • C++
    • C
    • VB 6.0
    • Tutorial

C Program to copy a string from one array to another.

 data-twttr-rendered="true">
#include <stdio.h>
#include<conio.h>
void main()
{
char a[20],b[20];
clrscr();
printf("\nEnter a string\t: ");
gets(a);
strcpy(b,a);
printf("\nString copied\t: ");
puts(b);
getch();
}
Share This:    Facebook Twitter Google+ Stumble Digg
Category: C Programs
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

Popular Posts

  • C++ program to show animated dancing dolls in graphics
    #include<dos.h> #include<iostream.h> #include<conio.h> #include<graphics.h> class doll {      public: void...
  • C++ Program to draw a cockroach (Simple Graphics)
    #include <iostream.h> #include <conio.h> #include <graphics.h> void main() { int gd=DETECT,gm; initgraph(&g...
  • C++ Program to implement translation in graphics
     A translation is an  affine transformation  but not a  linear transformation ,  homogeneous coordinates  are normally used to represent th...
  • C++ Program to implement boundary fill algorithm
    Start at a point inside the figure and paint with a particular color.  Filling  continues until a  boundary color is encountered. Thjere ar...
  • C++ Program to draw a bird (Simple Graphics)
    #include <iostream.h> #include <conio.h> #include <graphics.h> void main() { int gd=DETECT,gm; initgraph(&g...
Copyright © My Techno World | Powered by Blogger
Design by Vipin V | Blogger Theme by Gospius Innovations | Published By Google