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 |
What is a null object in c++?
What are exceptions c++?
What relational operators if statements in c++?
How does class accomplish data hiding in c++?
What is object slicing and how can we prevent it?
What is the benefit of learning c++?
Mention the purpose of istream class?
What is encapsulation in c++ with example?
Will a catch statement catch a derived exception if it is looking for the base class?
Explain the purpose of the keyword volatile.
What is setbase c++?
What is a protocol class?