The unary scope resolution operator must be used a to access a global variable

The unary scope resolution operator must be used a to

This preview shows page 4 - 5 out of 5 pages.

36. The unary scope resolution operator must be used (a) to access a global variable when a local variable of the same name is in scope(b) to access any variable in an outer block when a local variable of the same name is in scope(c) to access a global variable regardless of whether a local variable of the same name is in scope
Background image
(d) when a variable with the same name as an existing variable is declared inside a block 37. Which of the following does the C++ compiler not examine, in order to select the proper overloaded? 38. Overloaded functions must have 39. Type-safe linkage is ensured by 40. If program logic and operations are identical for each data type then a __________ should be used. (a) overloaded function(b) recursive function(c) macro(d) function template 41. Which of the following is true of function templates? 42. Given the following function templatetemplate < class T >T maximum( T value1, T value2 ){if ( value1 > value2 )return value1;elsereturn value2;}what would be returned by the following two function calls? maximum( 2, 5 ); maximum( 2.3, 5.2 );
Background image

You've reached the end of your free preview.

Want to read all 5 pages?

  • Fall '15
  • Marinolent

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture