Questions tagged [conversion]

The tag has no usage guidance.

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

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: ...
0
votes
1answer
86 views

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 (...
1
vote
1answer
9k views

incompatible pointer to integer conversion

incompatible pointer to integer conversion link to my file https://ide.cs50.io/rahulatrkm/ide50#openfile-x I was geeting message like this clang -fsanitize=integer -fsanitize=undefined -ggdb3 -O0 -...
0
votes
1answer
38 views

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 ‘...