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

void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}

in this code always gives the same result for all case

Answer Posted / sayantan ghosh

This will never give a result as its call by value and even the values arnt printed in the function so the values in main will only be present

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program which returns the first non repetitive character in the string?

1171


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3741


Tell me with an example the self-referential structure?

1076


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

1085


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2146


Tell me when would you use a pointer to a function?

1122


Why dont c comments nest?

1110


Why is this loop always executing once?

1110


What is wrong with this program statement?

1085


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

1100


How do you list files in a directory?

1210


How do you use a 'Local Block'?

1226


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1088


How is a null pointer different from a dangling pointer?

1085


What is structure of c program?

1229