I have two integer numbers. I want to find which number is greater than other one without using relational operators.
Jump to Post
You could use sprintf to convert int numbers to string then compare them with strcmp or memcmp
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.