CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions OneStopTesting.com - Testing EBooks, Tutorials, Articles, Jobs, Training Institutes etc.
OneStopGate.com - Gate EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopMBA.com - MBA EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopIAS.com - IAS EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopSAP.com - SAP EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopGRE.com - of GRE EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.

Sponsored Links

Interview Questions
Our Services



INTERVIEW QUESTIONS PROGRAMMING LANGUAGES C++ DETAILS
Question :

Write a function that swaps the values of two integers, using int* as the argument type.



Category C++ Interview Questions
Rating (4.7) By 12 users
Added on 7/16/2015
Views 55
Rate it!


Answers:

Source: CoolInterview.com


void swap(int* a, int*b) {
int t;
t = *a;
*a = *b;
*b = t;
}
Source: CoolInterview.com




If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification Enter the above shown code: *
Inform me about updated answers to this question

Related Questions
View Answer
Write a short code using C++ to print out all odd number from 1 to 100 using a for loop


View Answer
Write a program that ask for user input from 5 to 9 then calculate the average
View Answer
In the derived class, which data member of the base class are visible?

View Answer
STL Containers - What are the types of STL containers?
View Answer
How do you traverse a Btree in Backward in-order?
View Answer
What is pure virtual function?

View Answer
How can you tell what shell you are running on UNIX system?
View Answer
How do you find out if a linked-list has an end? (i.e. the list is not a cycle)
View Answer
What is polymorphism?
View Answer
How do you write a function that can reverse a linked-list?

View Answer
What is a container class? What are the types of container classes?
View Answer
What is an orthogonal base class?
View Answer
What is a node class?
View Answer
What are proxy objects?
View Answer
What are the conditions that have to be met for a condition to be an invariant of the class?
View Answer
Define precondition and post-condition to a member function.
View Answer
What do you mean by Stack unwinding?
View Answer
What is class invariant?
View Answer
What is a Null object?
View Answer
What is an adaptor class or Wrapper class?
View Answer

Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

View ALL C++ Interview Questions & Answers



User Options
India News Network

Latest 20 Questions
What is meant by Proactive, Retroactive and Simultaneous Update.
What is cold backup and hot backup (in case of Oracle)?
What are cursors give different types of cursors?
What are stand-alone procedures?
What is Authorization and Integrity manager?
What is Transaction Manager?
What is Storage Manager?
What are stored-procedures? And what are the advantages of using them?
What is database Trigger?
Name the three major set of files on disk that compose a database in Oracle.
How do you communicate with an RDBMS
What is the job of the information stored in data-dictionary?
Name the sub-systems of a RDBMS.
What is RDBMS KERNEL?
What are the primitive operations common to all record management systems?
What do you mean by Correlated subquery?
What is a query?
What is "transparent DBMS"?
What do you mean by flat file database?
What are the different phases of transaction?



Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions



Cache = 0.703125 Seconds