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
Should the this pointer can be used in the constructor?
Which is the best c++ software?
Which format specifier is used for printing a pointer value?
Is swift better than c++?
What is the best way to declare and define global variables?
an integer constant must have atleast one a) character b) digit c) decimal point
Is c++ used anymore?
Tell me what are static member functions?
Does c++ vector allocate memory?
Can a program run without main?
Describe linked list using C++ with an example.
What is the use of setfill in c++?
What is the default width for ouputting a long integer using the insertion operator?
What is function overloading c++?
Define whitespace in C++.