Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program to find the table of numbers using a while loop. Your program should ask the

size of the table. That size defines the rows and columns. Sample output:

Enter size: 6

1 2 3 4 5 6

------------------------------------------

1* 1 2 3 4 5 6

2* 2 4 6 8 10 12

3* 3 6 9 12 15 18

4* 4 8 12 16 20 24

5* 5 10 15 20 25 30

6* 6 12 18 24 30 36


When you pass an array from main() to a function, the function has the ability to edit the values in the original array.


A. True

B. False


When a two-dimensional array is passed to a function, the parameter for the array must contain a constant or integer literal that represents the number of rows and columns.


A.True

B. False


To pass the starting memory address of an array to a function, you must precede the array name by the & symbol.


A. True

B. False


Which keyword or symbol is placed in a function prototype and definition to prevent the function from changing a passed array?


A. &

B. *

C. fixed

D. const


Observe the function prototype below:

 

void printSomething(int[]);

 

Based on the parameter, what is this function expecting?


A. A single element of an array

B. An array address ("pass by reference")

C. An entire array ("pass by value")

D. The size of an array


By using the same ___, you can build relationships between data stored in two or more "parallel" arrays.


A. data type

B. name

C. subscript

D. function


This program will draw a playing field where the user decides the location of the Hero.

Enter the row # of the hero:   [user types: 1]

Enter the column # of the hero:  [user types: 3]


--H---------

-------------

-------------

-------------

-------------


Explain how overloading a unary operator is almost similar to overloading a binary operator with necessary examples and include main() function to demonstrate. Mention the differences between these two in terms of number of operands they deal with.

Compare the two strings is equal or not....



The "*" and "?" Can treated as a replace for characters



?=is used as replace for 1 character



* = It can be as replace for 1 to length of the character and can also used as a empty string



1st question:



3



Maggi Ma*i



Maggi Ma?gi



Maggi M*?



Answer:



True



True



True



2nd question:



Tree tr*



Plant Pl**



Dance D*ance



Answer:



False



True



True





LATEST TUTORIALS
APPROVED BY CLIENTS