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 |
Write about the role of c++ in the tradeoff of safety vs. Usability?
Explain queue. How it can be implemented?
What is the purpose of decltype?
Differentiate between the message and method?
What is the use of vtable?
What are the basics of classifying different storage types, why?
2 Answers Astergate, Symphony,
What is virtual constructor paradigm?
Why pointer is used in c++?
What is data types c++?
What are libraries in c++?
Explain differences between alloc() and free()?
What is the size of pointer ? Also size of pointer in 64 bit pointer