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's the order in which the objects in an array are destructed?
How do I tokenize a string in c++?
What is encapsulation in c++ with example?
What do you mean by persistent and non persistent objects?
Define macro.
Explain the static storage classes in c++.
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What information can an exception contain?
Write is a binary search tree? Write an algo and tell complexity?
Differentiate between C and C++.
Is c++ the hardest programming language?
What is else syntax in c++?
Explain the uses oof nested class?
How static variables and local variablesare similar and dissimilar?
Do inline functions improve performance?