DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR C
how to cast string to int in c
use atoi from the stdlib
.
h
char
*
string
=
"hi"
;
int
x
=
atoi
(
string
)
;
Source by www.interviewbit.com #
PREVIOUS
NEXT
Tagged:
#cast
#string
#int
ADD COMMENT
Topic
COMMENT
Name
3+7 =
Submit