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 c++ best used for?
How the endl and setw manipulator works?
What operator is used to access a struct through a pointer a) >> b) -> c) *
How the compilers arranges the various sections in the executable image?
What is class in c++ with example?
When are exception objects created?
What is the real purpose of class – to export data?
What is #include sstream?
Explain the uses of static class data?
What is a c++ map?
What is your strongest programming language (Java, ASP, C, C++, VB, HTML,C#, etc.)?
24 Answers Infosys, Microsoft, TCS,
What are the manipulators in c++?