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
Explain how functions are classified in C++ ?
What is a literal in c++?
What is capacity in vector in c++?
Can circle be called an ellipse?
How do I tokenize a string in c++?
What is the difference between ++ count and count ++?
Is it possible to write a c++ template to check for a function's existence?
Can non-public members of another instance of the class be retrieved by the method of the same class?
Define a conversion constructor?
What is the best c c++ compiler for windows?
Can recursive program be written in C++?
Why is c++ is better than c?
Should the member functions which are made public in the base class be hidden?
What are the storage qualifiers?
What is the need of a destructor? Explain with the help of an example.