Skip to content

Instantly share code, notes, and snippets.

@programmingfaster0226
Created February 21, 2018 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programmingfaster0226/251a632a619c156d0835e12e540dfea2 to your computer and use it in GitHub Desktop.
Save programmingfaster0226/251a632a619c156d0835e12e540dfea2 to your computer and use it in GitHub Desktop.
programmingfaster.com
#include<stdio.h>
#include<conio.h>
void main()
{
char s1[100],s2[100],i;
printf("enter string s1:");
scanf("%s",s1);
for(i=0;s1[i]!='0';i++)
{
s2[i]=s1[i];
}
s2[i]='\0';
printf("\n string s2:%s",s2);
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment