Questions tagged [integer]

The tag has no usage guidance.

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

Checking a string to see if it's an integer

I'm currently working on Caesar and I'm trying to go through each step in turn to complete it. As the problem set requires, I've written code that runs from the command line. The code below ...
1
vote
1answer
416 views

Prompt for integer > 2 and < 8 in C

Really rookie question about C... I want the user to enter a number between 2 and 8, and if they don't, the prompt repeats itself until an integer within my parameters is entered. I can get this to ...
0
votes
1answer
584 views

How to find the length of a number

I'm working on Credit and am at the point where I have completed all the required calculations on the credit card and now need to find out if the final sum ends in zero or not. I think that in order ...
0
votes
1answer
78 views

How to convert a 'list' into an int

I am currently working on my sell function of finance and I need to make shares = -shares in my history table to show the selling of the stock. However, I keep getting an error: int() argument ...
1
vote
1answer
8k 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 -...