Pages

Copy Data/String of one array to another array

Friday 19 April 2013




#include <stdio.h>
#include <conio.h>
int main()
{
    int i;
      char str1[]="This is Exersize 1.";
      char str2[20], ch, ch2;
      i=0;
      while(ch!='.')
      {
                    str2[i]=ch=str1[i];
                    i++;
      }
      i=0;
      while(ch2!='.')
      {
                     ch2=str2[i];
                     printf("%c", ch2);
                     i++  ;
      }
 
      getch();
}

 

Search Box

Most Reading

Contact Form

Name

Email *

Message *