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;
}
why can't we declare data member of class auto register or extern
Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?
What is istream c++?
What are the characteristics of friend functions?
What does std :: flush do?
What is c++ library?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
Describe the main characteristics of static functions?
Is c++ vector a linked list?
What do you mean by inheritance in c++?
Define the process of error-handling in case of constructor failure?
What is size of string in c++?