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 Bresenham's circle algorithm (Graphics)
    In  computer graphics , the  midpoint circle algorithm  is an algorithm used to determine the points needed for drawing a circle. Bresenham...
  • 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 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 reflection in graphics
    Reflection  in  computer graphics  is used to emulate  reflective  objects like  mirrors  and shiny surfaces. Reflection is accomplished ...
  • C program to find real root of a equation using Bisection method
    I am using equation f(x): x^ 3 -2x-5 = x*x*x-2*x-5 (a=2 and b=3) You can change it( x*x*x-2*x-5 ) to you own equation Code: #i...
Copyright © My Techno World | Powered by Blogger
Design by Vipin V | Blogger Theme by Gospius Innovations | Published By Google