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 |
Why doesn't C support function overloading?
A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market. Product W will appeal to female city dwellers. Product X will appeal to young females. Product Y will appeal to Male middle aged shoppers who do not live in cities. Product Z will appeal to all but older females.
How can you pass an array to a function by value?
Why is c fast?
what are the stages of compilation
What are different types of variables in c?
Why dont c comments nest?
What is Lazy evaluation in C? Give an example.
how 2 compile & execute c program with out using editor?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Explain the bubble sort algorithm.
How can I access memory located at a certain address?