Skip to main content

Questions tagged [conversion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer

incompatible pointer to integer conversion

incompatible pointer to integer conversion link to my file I was geeting message like this clang -fsanitize=integer -fsanitize=undefined -ggdb3 -O0 -...
Rahul's user avatar
  • 252
1 vote
2 answers

warning: deprecated conversion from string constant to ‘string {aka char*}’ [-Wwrite-strings]

I'm a complete beginner who just commenced on the CS50 course through EDX. While tryin out the walkthrough lessons in the CS50 IDE (clou9), I'm getting the following warning "TEST.C: In function ‘...
Muhammed Razeem's user avatar
0 votes
1 answer

pset1 credit.c – is this a data type conversion error?

TL;DR: My Luhn's algorithm function works flawlessly in JavaScript but not in C. In C, it ends up with the wrong total when multiplying every other digit. Could this be a data type conversion problem (...
Jinx Montague's user avatar
0 votes
1 answer

Hexadecimal to Decimal Conversion - Loop runs in reverse order (opposite to what is expected)!

The following code converts Hexadecimal numbers to Decimal numbers (successfully). I'm unable to figure out why the code behaves in just the opposite manner as it should be! I was planning to write: ...
Ishan's user avatar
  • 3