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 pendulum clock in graphics
    #include<math.h> #include<process.h> #include<dos.h> #include<iostream.h> #include<conio.h> #include<...
  • 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 implement shearing in graphics
    A shear is a transformation that distorts the shape of an object along either or both of the axies. Like scale and translate, a shear can b...
  • VB Program to save and find electricity bill using DAO
    Program to save customer details and print details of bill using DAO  Sample : I can't show you complete code Directly so dow...
  • C Program to display the pyramid of numbers
    #include #include void space(int i) {           while(i>=0)     {         printf(" ");         i--;     } } void p...
Copyright © My Techno World | Powered by Blogger
Design by Vipin V | Blogger Theme by Gospius Innovations | Published By Google