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 |
Which c++ compiler is best?
What is the difference between a pointer and a link in c ++?
What are the various operations performed on stack?
What do you understand by zombie objects in c++?
Why can templates only be implemented in the header file?
What is the v-ptr?
What is a base class?
What is a float in c++?
What is object file? How can you access object file?
how can u create a doubly linked list with out using pointers?
How does throwing and catching exceptions differ from using setjmp and longjmp?
Explain the benefits of proper inheritance.