casting size_t to int to declare size of char array

Posted by Brandon Hilton on Stack Overflow See other posts from Stack Overflow or by Brandon Hilton
Published on 2010-06-14T20:50:46Z Indexed on 2010/06/14 21:02 UTC
Read the original article Hit count: 213

Filed under:
|
|
|

I am trying to declare a size of a char array and I need to use the value of the variable that is declared as a size_t to declare that size. Is there anyway I can cast the size_t variable to an int so that I can do that?

© Stack Overflow or respective owner

Related posts about c++

Related posts about casting