Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Assume that there is no logic error. Identify if there is any declaration error: - Select optio

  Shared By: Giovanna Silva    Date: Mar 03    Category: C++ Programming    Views: 751

Answer:

Consider the following code segment:
1: template <class temp1, temp2>
2: void show(temp1 a, temp2 b)
3: {
4: cout<<”a”;
5: }
Assume that there is no logic error. Identify if there is any declaration error:

Options

a) Line1
b) Line 4
c) Both a and b
d) No error

Answer : a) Line1

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: