Will the following program execute?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

How do I tokenize a string in c++?

0 Answers  


What is iterator in c++?

0 Answers  


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

0 Answers  


Is java based off c++?

0 Answers  


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

0 Answers  






What is a linked list in c++?

0 Answers  


Define linked lists with the help of an example.

0 Answers  


Is python written in c or c++?

0 Answers  


How to declaring variables in c++?

0 Answers  


structure contains int, char, float how it behaves for big endian and little endian?

1 Answers   BITS,


this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }

1 Answers  


Show the declaration for a static function pointer.

0 Answers  


Categories