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 |
print first nodd numbers in descending order
What are the extraction and insertion operators in c++? Explain with examples.
How do I use arrays in c++?
Is string data type in c++?
What are different types of polymorphism supported by C++
Can a Structure contain a Pointer to itself?
How does atoi function work?
Why do we use classes in c++?
How to change constant values?
What is the difference between interpreters and compilers?
How do you initialize a string in c++?
Explain how we implement exception handling in c++?