i kow c up to a good level but i have question for which i am anable to find solution that is to find greatest of 2 numbers in 'c' without using 'if' condition can any one help me out
chillharsh
0
Newbie Poster
Recommended Answers
Jump to PostTernary operator perhaps ?
int a = 1; int b = 2; int c = ((a > b) ? a : b )
All 3 Replies
Reply to this topic
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.