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 |
Does there exist any other function which can be used to convert an integer or a float to a string?
what is the difference between overloading & overriding? give example.
Write about the stack unwinding?
How many types of scopes are there in c++?
what Is DCS ? what i will get benefit when i did?
What will happen if when say delete this ?
What is a constructor in c++ with example?
when can we use virtual destructor?
7 Answers HCL, HP, Virage Logic,
write a program that takes two numbers from user that prints the smallest number
Describe friend function & its advantages.
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
How we can differentiate between a pre and post increment operators during overloading?