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 virtual table?
Can I learn c++ in a week?
Which one between if-else and switch is more efficient?
Explain what is oop?
Write a program to get the value of sin (x) using a library function , when x is given in degrees.
Why do we use iterators?
What gives the current position of the put pointer?
Describe protected access specifiers?
Comment on c++ standard exceptions?
What is the protected keyword used for?
What flag means?
Write bites in Turbo c++ Header ("Include") Files.