| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is static function | Patni | 2 |
| What is Memory Alignment? | TCS | 1 |
| What is difference between initialization and assignment? | HP | 4 |
| Why would you make a destructor virtual? | Lehman-Brothers | 3 |
| What is a "RTTI"? | HCL | 5 |
| Disadvantages of c++ | | 3 |
| 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 |
| Write a program to swap 2 chars without using a third
varable?
char *s = "A";
char *p = "B"; | CTS | 3 |
| Brief explaination about #include<iostream.h>,
cin and cout | | 3 |
| Can we generate a C++ source code from the binary file? | | 1 |
| Give 2 examples of a code optimization? | | 1 |
| What about Virtual Destructor?
| Virtusa | 1 |
| What are the differences between a struct in C and in C++? | Wipro | 4 |
| Write any small program that will compile in "C" but not
in "C++" | Honeywell | 6 |
| Implement strncpy | | 2 |
| What are the basics of classifying different storage types,
why? | Symphony | 2 |
| What is size of null class? | HP | 3 |
| What is a constructor initializer list and when we use
constructor initializer list?
| TCS | 2 |
| what is meaning of isa and hsa | | 1 |
| Difference between static global and global? | Symphony | 8 |
| |
| For more C++ General Interview Questions Click Here |