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 implement rotation in graphics
    In  linear algebra , a  rotation matrix  is a  matrix  that is used to perform a  rotation  in  Euclidean space . For example the matrix ...
  • 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 with Algorithm to check whether the given year is a leap year or not
    #include<stdio.h> #include<conio.h> void main() { int year; clrscr(); printf("\nEnter the year : "); sca...
  • C Program with Algorithm to Find Root of Quadratic Equation.
    #include<stdio.h> #include<conio.h> #include<math.h> void main() { float a,b,c,r,d,r1,r2,im; clrscr(); prin...
  • C++ program : To read and write two files simultaneously
    #include<iostream.h> #include<conio.h> #include<fstream.h> class record {    int id;    char name[50];    fst...
Copyright © My Techno World | Powered by Blogger
Design by Vipin V | Blogger Theme by Gospius Innovations | Published By Google