Questions tagged [integer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
351 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 ...
user avatar
1 vote
1 answer
449 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 ...
user avatar
0 votes
1 answer
795 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 ...
user avatar
0 votes
1 answer
86 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 ...
user avatar
1 vote
1 answer
11k 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 -...
user avatar
  • 264