how is returning structurs from functions?Show an eg?
Answer / ravi.g
struct student
{
int age;
float percntg;
};
struct student s1;
int a=25;
float p=88.99;
student assign(a,p)
{
student s2;
s2.age=a;
s2.percntg=p;
return s2;
}
| Is This Answer Correct ? | 3 Yes | 0 No |
class base { public: int fun(int) {} }; class base2 { public: int fun(float) { } }; so here qustion is both function either function overloading or over riding;
What are the types of STL containers?
What is the use of endl?
What is object in c++ example?
Write about the access privileges in c++ and also mention about its default access level?
Difference between linked list and array?
What is the use of endl in c++?
1.Between 100 and 999 are some numbers that have the characteristics that if you cube the individual digits and sum together you will get the same number. 2. A program that can accept as input an integer and output the equivalent of that number in words.
How can virtual functions in c++ be implemented?
Name some pure object oriented languages?
What is "strstream" ?
In a function declaration, what does extern mean?