how is returning structurs from functions?Show an eg?
Answer Posted / 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 |
Post New Answer View All Answers
What is the best ide for c++?
What is a constructor in c++ with example?
What are proxy objects in c++?
What is the iunknown interface?
What is runtime errors c++?
What is the extension of c++?
Does c++ have a hash table?
What are manipulators used for?
Why are arrays usually processed with for loop?
What is the difference between public, private, and protected access?
Who discovered c++?
What is namespace std; and what is consists of?
Describe the role of the c++ in the tradeoff of safety vs. Usability?
What is operator overloading in c++ example?
Can I learn c++ without c?