C Program to interchange the values of two different strings variable

C Program to interchange the values of two different strings variable


main ( )
{
char * s1 = “abcd”;
char s2[] = “efgh”;
printf( “%s %16lu \n, s1, s1);
printf( “%s %16lu \n, s2, s2);

s1 = s2;
printf( “%s %16lu \n, s1, s1);
printf( “%s %16lu \n, s2, s2);
}




No comments:

Post a Comment