-
-
Save programmingfaster0226/251a632a619c156d0835e12e540dfea2 to your computer and use it in GitHub Desktop.
programmingfaster.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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