# include & ltstdlib.h & gt
# include & ltstdio.h & gt
void main()
{
char str[]= " 123 ";
int n;
n = atoi(str);
printf("%d\n ",n);
}