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 |
What is vector string in c++?
What you mean by early binding and late binding? How it is related to dynamic binding?
What does new in c++ do?
Give 2 examples of a code optimization?
Explain the volatile and mutable keywords.
How one would use switch in a program?
What is the difference between "calloc" and "malloc"?
What is a null object in c++?
Does dev c++ support c++ 11?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
Which of the following is evaluated first: a) && b) || c) !
Explain one-definition rule (odr).