dhakeparag81
Full Member level 2
- Joined
- Jun 6, 2012
- Messages
- 142
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,298
- Location
- INDIA
- Activity points
- 2,469
hi there,
I m trying o typecast char array to int.
i define one string str1 and title_ptr as a int pointer, i am tryint to assign str1[0] address to int but it shows error "type mismatch in assignment"
please tell me how to assign address of str1[0] to title_ptr;
please help me as early as possible because i m just close to my project and i like to share all project related data here.
I m trying o typecast char array to int.
i define one string str1 and title_ptr as a int pointer, i am tryint to assign str1[0] address to int but it shows error "type mismatch in assignment"
please tell me how to assign address of str1[0] to title_ptr;
Code:
unsigned char str1[50];
unsigned int *title_ptr;
void main(void)
{
.....
...
title_ptr = (int) &str1[0];
}