Skip to content

Instantly share code, notes, and snippets.

@programmingfaster0226
Created February 20, 2018 20:15
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/4b96950757a6ce40867e2ff29f827b9f to your computer and use it in GitHub Desktop.
Save programmingfaster0226/4b96950757a6ce40867e2ff29f827b9f to your computer and use it in GitHub Desktop.
programmingfaster.com
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char s1[100]="Elon Musk";
char s2[100];
strcpy(s2,s1);
printf("string s1:%s\n",s1);
printf("string s2:%s\n",s2);
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment