C++ Answers

Questions answered by Experts: 9 913

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

Q: What is the data type of pointer variables? Suppose that we don‘t know the name of a variable but we do know its address. Can we access the contents of that variable? Explain briefly.



Q: What is the data type of pointer variables? Suppose that we don‘t know the name of a variable but we do know its address. Can we access the contents of that variable? Explain briefly.

Q: Write a program which defines three integer variables, var1, var2 and var3, & initializing them to the values 100, 200 & 300, it then prints out their addresses.



Q: What is the data type of pointer variables? Suppose that we don‘t know the name of a variable but we do know its address. Can we access the contents of that variable? Explain briefly.



Q:Write a program which read the following (3x3 dimensional) array and then display it.

"\\begin{Bmatrix}\n 10 & 50 & 70 \\\\\n 40 & 80 & 30 \\\\\n 20 & 55 & 60 \\\\\n\\end{Bmatrix}"


Q: Many languages internally treat strings as character arrays, but somehow conceal this fact from the programmer. Character arrays or strings are used by programming languages to manipulate text such as words and sentences. Explain this statement with the help of a program.



Q: Create a function “square”, which calculate and displays square of any number entered through the keyboard.  

Q: To decompose the lengthy program into various segments (modules) each of which perform a specific task? Such segments are termed as functions in C++ language. Could you expand this statement further?



Suppose we have data about students of a class i.e. name, addresses, date of birth, GPA and courses of study. This information is related to only a single entity i.e. student.

Which type of programming method you will use to initialize and display this information. Explain with a program.



Write a function that replaces the elements of an integer sequence whose value a is the value of b. Write a main program that uses that function and displays the resulting sequence of numbers on the screen.


LATEST TUTORIALS
APPROVED BY CLIENTS