IndiaBIX.com
Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C++ Programming C# Programming Java Programming
Microbiology Biochemistry Biotechnology Biochemical Engineering
Civil Engineering Mechanical Engineering Chemical Engineering Networking Database Questions Computer Science Basic Electronics Digital Electronics Electronic Devices Circuit Simulation Electrical Enigneering Engineering Mechanics Technical Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing

Computer Science - Object Oriented Programming Using C++ - Discussion


Read more:

"No one is as deaf as the man who will not listen."
- (Proverb)
10. 

A C++ program contains a function with the header int function(double d, char c). Which of the following function headers could be used within the same program?

[A]. char function(double d, char c)
[B]. int function(int d, char c)
[C]. both (a) and (b)
[D]. neither (a) nor (b)

Answer: Option A

Explanation:

No answer description available for this question.


Himanshu said: (Tue, Mar 15, 2011 01:20:20 AM)    
 
Please give a example of the same.

Ajit said: (Sun, Jul 3, 2011 02:12:06 PM)    
 
The right answer here should be (B). As the compiler differentiates the functions with same name based on.

I) no. Of arguments.

Ii) type of arguments.

The return type is not a taken into account in case of function overloading.

Thus (A) is ruled out.

Gautam said: (Fri, Oct 7, 2011 09:17:07 AM)    
 
Its just like function overloading.

Rohit said: (Fri, Dec 9, 2011 05:39:44 PM)    
 
Double can take 4 byte, but int can take only 2 byte.

Surendranath Reddy said: (Sun, Jan 22, 2012 08:43:05 PM)    
 
Yes, I agree to what ajith said.

Write your comments here:
Name *:     Email:


© 2008-2013 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

Contact us: info@indiabix.com     Follow us on twitter!