How to declare or use Variables in C++ ?
Not what you're looking for?
Which of the following variable declarations are correct? If a variable declaration is not correct give the reason(s) and provide the correct variable declaration.
n = 12; //Line 1
char letter = ; //Line 2
int one = 5, two; //Line 3
double x, y, z; //Line 4
Line 3 and 4 are correct but what is wrong with Line 1 and Line 2?
Purchase this Solution
Solution Summary
The solution is comprised of examples which shows some common mistakes in variable declaration and definition.
Solution Preview
n = 12 //Line 1
* Undefined Symbol n
Remedy: declare it as an integer.
int n = 12;
char letter = ; //Line ...
Purchase this Solution
Free BrainMass Quizzes
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
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.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
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.