Write a program to swap 2 chars without using a third
varable?
char *s = "A";
char *p = "B";
Answer Posted / s.divya
void swap(A,B)
{
A=*p;
B=*s;
getch();
}
| Is This Answer Correct ? | 1 Yes | 18 No |
Post New Answer View All Answers
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
What is a namespace in c++?
What is object in c++ wikipedia?
What is a terminating character in c++?
What are virtual functions in c++?
What is an associative container in c++?
Explain how to initialize a const data member.
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
Describe private, protected and public – the differences and give examples.
What is the best c c++ compiler for windows?
What are references in c++? What is a local reference?
What are the advantages of c++ over c?
What is the use of class in c++?
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
How can we read/write Structures from/to data files?