Help
Advanced Member level 2
Hi,
Anyone know how to convert the variable to array elements?
Ex.
int Var = 12345;
after converted:
char VarAry[] = {"12345"); or
char VarAry[] = {'1','2','3','4','5'};
2Q: How can we directly know how many digits that we have in Var? From there we can know we got 5digits.
Please guide me how to write the C program...
Thank You.
Anyone know how to convert the variable to array elements?
Ex.
int Var = 12345;
after converted:
char VarAry[] = {"12345"); or
char VarAry[] = {'1','2','3','4','5'};
2Q: How can we directly know how many digits that we have in Var? From there we can know we got 5digits.
Please guide me how to write the C program...
Thank You.