Dear All,
I am getting Run Time Error In Following code, what could be the problem?
Thanks for Help.Code:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
main ( )
{
char *str1 = "hS eesll snsiasl not eh es as oher " ;
char *str2 ;
swab ( str1, str2, strlen ( str1 ) ) ;
printf ( "The target string is : %s\n", str2 ) ; // output -- She sells snails on the a shore
return 0;
}