how % operator worked in c++?
3%5=3;
how?
it should be 0;
Ahtsham
0
Newbie Poster
Recommended Answers
Jump to PostWell 3 divided by 5 has 3 left over. The modulus operator computes the remainder of integer division.
All 3 Replies
gerard4143
371
Nearly a Posting Maven
JasonHippy
739
Practically a Master Poster
richieking
44
Master 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.