what is difference between c and c++

Answer Posted / vantees

C
1)Structured programing.
2)In build functions are used to allocate the memory dynamically.
3)Struct members are public by default.
4)Data and functions are separated.

C++
1)Object oriented programing.
2)New ,Delete operators are used to allocate the memory dynamically
3)class members are private by default.
4)Together data and functions into single entity.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is formal argument?

654


Do you have any idea how to compare array with pointer in c?

610


What are the primitive data types in c?

579


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1881


Which header file is essential for using strcmp function?

947






Which is best linux os?

568


What are structural members?

576


What is sizeof int in c?

607


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

652


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

4845


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

662


What does 2n 4c mean?

725


Explain what math functions are available for integers? For floating point?

618


Why c is called a middle level language?

636


What are the different file extensions involved when programming in C?

764