Write a corrected statement in c++ so that the statement
will work properly. if (x = y) x = 2*z;
Answer Posted / rose
if(x==y)
{
x=2*z;
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the advantages of inheritance in c++?
Should you pass exceptions by value or by reference?
What is searching?
Write about all the implicit member functions of a class?
A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.
What is long in c++?
Discuss the possibilities related to the termination of a program before entering the mainq method?
what is data encapsulation in C++?
What is a breakpoint?
What are manipulators used for?
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
What is c++ hiding?
What are friend functions in C++?
Tell me difference between constant pointer and pointer to a constant.