Questions tagged [typecasting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
117 views

PSET1 - Credit Checksum Problem

{ long long l; do { l = get_long_long("Number: "); } while (l < 0); float count = 0; long long m = l; while( m != 0) { m /= 10; count+...
0
votes
1answer
75 views

pset2 caesar Typecasting error

My program will compile and run, but it prints out exactly what I enter in. I've run it through the debugger and it looks like it can't identify the different cases, so rather than split at the ...
0
votes
1answer
887 views

How can I pass an array or a long long unsigned variable as an argument to a function?

Okay, I admit I have no business doing the "hacker edition" problems, but I am having so much fun with this that I want to do ALL THE PROBLEMS! Anyway. I'm working on pset1 hacker edition "credit." ...
0
votes
2answers
142 views

Typecasting doesn't work as expected in pset1

I found a workaround for the following question, but I'd still like to understand why typecasting isn't working the way I understood it to work. Here I'm simply trying to take the user's input, ...