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
Out of fgets() and gets() which function is safe to use?
What does std mean in c++?
What is polymorphism and its type in c++?
why is iostream::eof inside a loop condition considered wrong?
What is the difference between global variables and local variable
What is the full form of c++?
Can you overload the operator+ for short integers?
Distinguish between a # include and #define.
Can notepad ++ run c++?
What is a catch statement?
What is a constructor in c++ with example?
How do you declare a set in c++?
How does work in c++?
Should a constructor be public or private?
Explain object slicing in c++?