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 Digital differential analyzer (DDA graphics algorithm)
    In  computer graphics , a  digital differential analyzer  ( DDA ) is hardware or software used for  linear interpolation  of  variables  ov...
  • 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 convert- 1.Postfix to Infix 2.Postfix to Prefix 3.Prefix to Infix
    C program to convert:                                            1.Postfix to Infix                                             2.Postfix...
  • C program to Implement Heap Sort of Names using file
    Implement  Heap Sort of Names using file #include<stdio.h> #include<conio.h> #define MAX 20 char na[MAX][MAX]; void he...
  • C Program to print the palindrome numbers between 10 to N (use user defined function).
    void palindrome(int s,int e) {     int r,d;     while(s<=e)     {         r=0;         d=s;         while(1)         {      ...
Copyright © My Techno World | Powered by Blogger
Design by Vipin V | Blogger Theme by Gospius Innovations | Published By Google