C++ Programming - Functions - Discussion
Discussion Forum : Functions - Programs (Q.No. 21)
21.
What will be the output of the following program?
#include<iostream.h>
class IndiaBix
{
int K;
public:
void BixFunction(float, int , char);
void BixFunction(float, char, char);
};
int main()
{
IndiaBix objIB;
objIB.BixFunction(15.09, 'A', char('A' + 'A'));
return 0;
}
void IndiaBix::BixFunction(float, char y, char z)
{
K = int(z);
K = int(y);
K = y + z;
cout<< "K = " << K << endl;
}
Discussion:
14 comments Page 2 of 2.
Shiksha said:
1 decade ago
A single definition for two declarations isn't an issue here!
Why so?
Why so?
Anonymous said:
8 years ago
There is no variable name for float in member function definition.
Sai theja said:
8 years ago
@Aks.
Why A value is taken as 65?
Why A value is taken as 65?
Rakesh said:
1 decade ago
How this work please explain me?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers