Конвертація типів даних

char str1[20] = "C programming"; 

char str2[20];

strcpy(str2, str1);  // puts(str2); 

#include <math.h>

atoi(str)

atof(str)