Write a program to swap 2 chars without using a third
varable?
char *s = "A";
char *p = "B";
Answer Posted / answer and question
k=*s;
*s=*p;
*p=k;
Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
What is c++ hiding?
What is a memory leak c++?
How a pointer differs from a reference?
Explain what you mean by a pointer.
Which programming language is best to learn first?
What does catch(…) mean?
Is vector a class in c++?
What is the function of I/O library in C++ ?
Write bites in Turbo c++ Header ("Include") Files.
What is scope operator in c++?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
How static variables and local variablesare similar and dissimilar?
What do you mean by const correctness?
Write a Program to find the largest of 4 no using macros.
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.