Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ char array to int

int main()
{
    char hello[] = "12345";

    Printf("My number is: %d", atoi(hello)); 

    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #char #array #int
ADD COMMENT
Topic
Name
2+1 =