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 array give example?
how is returning structurs from functions?Show an eg?
How many different levels of pointers are there?
What is the purpose of ios::basefield in the following statement?
Where Malloc(), Calloc(), and realloc() does get memory?
Differentiate between the message and method in c++?
Why would you use pointers in c++?
How would perform Pattern Matching in C++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Can circle be called an ellipse?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What is c++ library?