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 implement Bresenham's line algorithm (Graphics)
    Bresenham's line algorithm  is an  algorithm  that determines the points of an  n -dimensional  raster  that should be selected in orde...
  • C Program to calculate sum of two matrices.
    #include<stdio.h> #include<conio.h> void main() {    int m1[20][20],m2[20][20],r,c,i,j;    clrscr();    printf("\n...
  • 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 calculate the product of two matrices.
    #include<stdio.h> #include<conio.h> int m1[20][20],m2[20][20],ans[20][20]; void product(int x1,int y1,int x2,int y2) {   ...
Copyright © My Techno World | Powered by Blogger
Design by Vipin V | Blogger Theme by Gospius Innovations | Published By Google