GMAIL Most Important Question for a post in Software Company | Security Learner's Blog

Thursday, 6 March 2014

Most Important Question for a post in Software Company

What is the Difference between C and C++?
C
1. C is Procedural Language.
2. No virtual Functions are present in C
3. In C, Polymorphism is not possible.
4. Operator overloading is not possible in C.
5. Top down approach is used in Program Design.
6. No namespace Feature is present in C Language.
7. Multiple Declaration of global variables are allowed.
8. In C
• scanf() Function used for Input.
• printf() Function used for output.
9. Mapping between Data and Function is difficult and complicated.
10. In C, we can call main() Function through other Functions
11. C requires all the variables to be defined at the starting of a scope.
12. No inheritance is possible in C.
13. In C, malloc() and calloc() Functions are used for Memory Allocation and free() function for memory Deallocating.
14. It supports built-in and primitive data types.
15. In C, Exception Handling is not present.

C++
1. C++ is non Procedural i.e Object oriented Language.
2. The concept of virtual Functions are used in C++.
3. The concept of polymorphism is used in C++.
Polymorphism is the most Important Feature of OOPS.
4. Operator overloading is one of the greatest Feature of C++.
5. Bottom up approach adopted in Program Design.
6. Namespace Feature is present in C++ for avoiding Name collision.
7. Multiple Declaration of global varioables are not allowed.
8. In C++
• Cin>> Function used for Input.
• Cout<< Function used for output.
9. Mapping between Data and Function can be used using "Objects"
10. In C++, we cannot call main() Function through other functions.
11. C++ allows the declaration of variable anywhere in the scope i.e at time of its First use.
12. Inheritance is possible in C++
13.In C++, new and delete operators are used for Memory Allocating and Deallocating.
14. It support both built-in and user define data types.
15. In C++, Exception Handling is done with Try and Catch block.

FIDA HUSSAIN

I am Fida Hussain,a computer student from Pakistan. Right from the day one I was introduced to computers,I had a passion for Hacking and Information security. So,I started this blog in 2012 to share my views and ideas with the world.

0 comments :

Post a Comment

 

Security Learner's Blog

Designed by Fida Hussain
This content is DMCA Protected.Copying or reproducing of procedure is prohibited.Do Not Copy!!