Hi,
getting invalid atoi value for the below program, help me resolving this issue.
getting invalid atoi value for the below program, help me resolving this issue.
Code:
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int main () {
char *num = "222211113333";
int atNum ;
printf ("character value :%s\n ", num);
atNum = atoi (num);
printf ("\n\ninteger number : %d\n", atNum);
}
Comment