1. Engineering
  2. Computer Science
  3. question 25 when the less than operator is used...

Question: question 25 when the less than operator is used...

Question details

QUESTION 25 When the less than ( operator is used between two pointer variables, the expression is testing whether: O the value pointed to by the first is less than the value pointed to by the second the value pointed to by the first is greater than the value pointed to by the second O the address of the first variable comes before the address of the second variable in the computers memory the first variable was declared before the second variable O None of these QUESTION 26 O asterisk () o conditional operator ampersand (&) semicolon () O None of these QUESTION 27 When you pass a pointer as an argument to a function, you must: o redeclare the pointer variable in the function call O dereference the pointer variable in the function prototype O use the#include«func-ptr.h> statement not dereference the pointer in the functions body None of these

QUESTION 28 When you work with a dereferenced pointer, you are actually working with: O a variable whose memory has been deallocated copy of the value pointed to by the pointer variable o the actual value of the variable whose address is stored in the pointer variable All of these O None of these QUESTION 29 int array- delete memory: O int deletel O delete [1array: O new array - delete: O None of these QUESTION 30 Which of the following statements is not valid C++ code? int ptr-&num1: int ptr int num1; o float num1 &ptr2: All of these are valid. O All of these are invalid.

QUESTION 31 Which statement displays the address of the variable num1? O cout num1: O coutum1: O cin&num1: O cout &num1: O None of these QUESTION 32 With pointer variables, you canmanipulate data stored in other variables O never O seldonm O indirectly O All of these O None of these

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution