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...

Given the following function definition: int doit(int &x,
int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z -
4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c);

Answer Posted / harminder

I think it will be

a = 15
b = 7
c = 27
d = 4

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Incase of a function declaration, what is extern means?

935


What is an object in c++?

1187


How do you find out if a linked-list has an end?

1091


What is the difference between mutex and binary semaphore?

1136


Explain the operation of overloading of an assignment operator.

1140


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1027


How do you define/declare constants in c++?

1021


Which one is a preferred language C or C++? Why?

1044


What is copy constructor? Can we make copy constructor private in c++?

1048


How would you differentiate between a pre and post increment operators while overloading?

1102


Is std :: string immutable?

1005


What are keywords in c++?

1067


Explain differences between alloc() and free()?

1080


How many types of classes are there in c++?

1007


Does std endl flush?

1001