Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to convert string to integer in c

#include <stdio.h>
#include <stdlib.h>
int main()
{
    char ch[]="123";
    int a=atoi(ch);
    printf("%d",a);
    return 0;
}
 
PREVIOUS NEXT
Tagged: #convert #string #integer
ADD COMMENT
Topic
Name
2+7 =