Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how is returning structurs from functions?Show an eg?



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

Post New Answer

More C++ General Interview Questions

Which c++ compiler is best?

0 Answers  


What is the difference between a pointer and a link in c ++?

0 Answers  


What are the various operations performed on stack?

0 Answers  


What do you understand by zombie objects in c++?

0 Answers  


Why can templates only be implemented in the header file?

0 Answers  


What is the v-ptr?

0 Answers  


What is a base class?

0 Answers  


What is a float in c++?

0 Answers  


What is object file? How can you access object file?

0 Answers  


how can u create a doubly linked list with out using pointers?

2 Answers  


How does throwing and catching exceptions differ from using setjmp and longjmp?

1 Answers  


Explain the benefits of proper inheritance.

0 Answers  


Categories