Out of fgets() and gets() which function is safe to use and why?
No Answer is Posted For this Question
Be the First to Post Answer
What do you mean by vtable and vptr in c++?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Can we use struct in c++?
Why c++ is so important?
Describe private, protected and public?
Implement strcmp
Is multimap sorted c++?
Discuss the possibilities related to the termination of a program before entering the mainq method?
Explain differences between alloc() and free()?
What you know about structures in C++?
0 Answers Agilent, ZS Associates,
Write about a nested class and mention its use?
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; }