plz explain these function. how can w divide a number by 3 using only atoi function.
sydsine
0
Newbie Poster
Recommended Answers
Jump to Postyou can't. atoi() converts a string into an integer, has nothing to do with division.
Jump to PostAfter converting the string to int using atoi() you can simulate division by a series of subtraction.
All 7 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
cse.avinash
-1
Junior Poster
sydsine
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
cse.avinash
-1
Junior Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
cse.avinash
-1
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.