Computer Science, asked by manannehru2106, 1 year ago

Write a program that converts a string like 124 to an integer 124

Answers

Answered by Anonymous
1
To convert string to integer, we first take a string as input from user using gets function. We have to convert this input string into integer. Input string should consist of digits('0' to '9') and minus sign('-') for negative numbers. It may contains some non-numerical characters like alphabet, but as soon as we see any non-numerical character we stop conversion and return converted integer till now.

Hope this helps you. ..
@KHUSHALI. .

Anonymous: if you like this plz mark this as brainliest answer.
Similar questions