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 a dynamic binding in c++?
int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } What will be output of this program?
What are the uses of pointers?
structure contains int, char, float how it behaves for big endian and little endian?
Why c++ is created?
What are the two types of comments, and how do they differ?
Explain the different access specifiers for the class member in c++.
In C++ cout is: a) object b) class c) something else
11 Answers Infosys, Lehman Brothers,
What is conversion constructor?
When you overload member functions, in what ways must they differ?
What is a singleton class c++?
Does c++ have foreach?