what is difference between c and c++
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
C C++
1) C is an structured oriented object oriented lang.
language
2) C use structures where no here it contains classes
function and data's inside where it contains both data's
involved . only outside we as well as member functions
can write functions and
initilization could be done
3) variables should be wherever we wann we can
initilized on the first line initilize the variable
after the main function
| Is This Answer Correct ? | 9 Yes | 0 No |
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 |
Answer / sandeep kumar
C
1)It is structured language
2)It follows Top-down approach
3)large programs are divided into small programs called
functions
4)data move openly from one function to other function
C++
1)It is a Object oriented language
2)It is not compulsory to be top-down procedure
3)large program is divided into small objects
4)data cant be accessed by external functions easily
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / tapan pal
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 ? | 1 Yes | 1 No |
What's the difference between a linked list and an array?
what is the structure pointer?
Why we use int main and void main?
Write a program to add a given duration with time(24hrs format)
How do you access command-line arguments?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
How does #define work?
What is a string?
Why does not c have an exponentiation operator?
How do c compilers work?
What is file in c preprocessor?
For what purpose null pointer used?