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 |
How do you write a function that can reverse a linked-list?
What do you mean by function overriding & function overloading in c++?
what are the events occur in intr activated on interrupt vector table
What is the difference between a "copy constructor" and an "assignment operator" in C++?
What is meant by iomanip in c++?
CAN U SAY WHICH PROGRAMING LANGUAGE IS USED BY DOCTORS....?
Explain method of creating object in C++ ?
What sorting algorithm does c++ use?
How the delete operator differs from the delete[]operator?
What do you mean by static variables?
why and when we can declar member fuction as a private in the class?
What are enumerations?