Check two first elements of char array and send to an integer : <p>I have credit fictitious credit card numbers stored as char array and long long. In order to check if the card is VISA, MASTER or AMEX, I have to check first two digits either of this long long or of this string.
MasterCard numbers all start with 51, 52, 53, 54, or 55
American Express numbers all start with 34 or 37
Visa numbers all start with 4</p>

<p>Any idea how to do so?
I've tried to put in two separate integers and check later with if/else, but I guess there might be a better way to solve this.
Thanks for the help.</p>
