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 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 Matrix: Addition, Subtraction, Multiplication and Transpose
    #include<iostream.h> #include<conio.h> #define s 20 class matrix {    int a[s][s],x,y;    //static int n;     public:...
  • 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...
  • C Program & Algorithm to find the second biggest element in an array (use user defined function).
    #include<stdio.h> #include<conio.h> int array[20]; void sort(int x) {    int temp,i,j;    for(i=0;i<x;i++)    for(...
  • C Program for binary search using recursive function.
    #include<stdio.h> #include<conio.h> int array[20]; int s; void sort(int x) {    int temp,i,j;    for(i=0;i<x;i++)   ...
Copyright © My Techno World | Powered by Blogger
Design by Vipin V | Blogger Theme by Gospius Innovations | Published By Google