由买买提看人间百态

topics

全部话题 - 话题: 134514482
(共0页)
M*m
发帖数: 141
1
来自主题: Programming版 - C, how is a string cast into a int?
char *a = "12";
int j = (int)a;
j is 134514482, what is going on here? how does c convert "12" to this
number?
M*m
发帖数: 141
2
来自主题: Programming版 - C, how is a string cast into a int?
is 134514482 the address of a?
P********e
发帖数: 2610
3
来自主题: Programming版 - C, how is a string cast into a int?
int j = atoi(a);

char *a = "12";
int j = (int)a;
j is 134514482, what is going on here? how does c convert "12" to this
number?
(共0页)