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 c++ ide?
What is c++ try block?
What is the purpose of template?
What is c++ and its uses?
What is binary search in c++?
Explain what is oop?
Can we change the basic meaning of an operator in c++?
Why is c++ so fast?
Explain operator overloading.
What is vector pair in c++?
Is c++ the best programming language?
What is c++ similar to?
What is functions syntax in c++?
What is abstract keyword in c++?
How much maximum can you allocate in a single call to malloc()?