Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.