Logo 
Search:

C++ Programming FAQ

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

Identify the error, if any: double avg=tot/n; in this statement

  Shared By: Waggoner Fischer    Date: Feb 15    Category: C++ Programming    Views: 805

Answer:

Options

a) Declaration should not contain any expression
b) Initialization cannot be done in the declaration statement
c) Dynamic initialization is not possible
d) No error

Answer : d) No error

Share: 
 



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


Tagged: