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 |
Can you please explain the difference between static and dynamic binding of functions?
What is c++ try block?
What is protected inheritance?
What is the difference between a constructor and a destructor in C++?
Write any small program that will compile in "C" but not in "C++"
What is static in c++?
What is the difference between an array and a list?
Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast
What are the main differences between C and C++?
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?
What are the conditions that have to be met for a condition to be an invariant of the class?
What is a list c++?