Can we delete this pointer in c++?
No Answer is Posted For this Question
Be the First to Post Answer
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
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 are the basics of classifying different storage types, why?
2 Answers Astergate, Symphony,
What is the main use of c++?
how to access grid view row?
List the merits and demerits of declaring a nested class in C++?
Write a C++ program which will compute the volume of a sphere or a cylinder after prompting the user to type the first character for the shape name.
0 Answers An-Najah National University,
Why are arrays usually processed with for loop?
What is an iterator class in c++?
What is meant by a delegate?