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 can virtual functions in c++ be implemented?
What are advantages of c++?
Is there any problem with the following: char *a=NULL; char& p = *a;?
Write about the stack unwinding?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
How many pointers are required to reverse a link list?
What is the benefit of encapsulation?
What are Virtual Functions? How to implement virtual functions in "C" ?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
Explain storage qualifiers in c++.
Are iterators pointers?
What is stream and its types in c++?