What does this c++ code snippet mean?
Not what you're looking for?
Can someone please explain to me what does this c++ code snippet mean?
maxlen = (len1 > len2) ? len1 : len2;
I am confused, in general what does the question sign mean along with the statements in between parenthesis. I have seen this a lot and have no clue what it means.
Purchase this Solution
Solution Summary
In the given case it amounts to writing the following if-then-else statement.
Solution Preview
You can understand it as a compact if-then-else ternary operator "?:" .
In the given case it amounts to writing the following if-then-else ...
Purchase this Solution
Free BrainMass Quizzes
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.
C# variables and classes
This quiz contains questions about C# classes and variables.
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Basic Networking Questions
This quiz consists of some basic networking questions.