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 rvalue?
What is the difference between #import and #include?
What are the comments in c++?
What do you mean by global variables?
why we cant create array of refrences
What is the operator in c++?
Explain about Virtual Function in C++?
Can we use this pointer inside static member function?
What is a pointer how and when is it used?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
What is else syntax in c++?
Why are pointers not used in c++?