without using swap function....
zandiago 115 Nearly a Posting Maven Featured Poster
Aia 1,977 Nearly a Posting Maven
Salem commented: Yes, he is an annoying spammer +13
doublex 1 Newbie Poster
Salem 5,248 Posting Sage
Duoas 1,025 Postaholic Featured 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.