what is the main difference between c and c++?
Answer Posted / nagendra kumar.ammisetty
c is an procedure oriented programming language.
-->c++ is an object oriented programming language.
c is low level language.
-->c++ is a high level language.
c use the #include<stdio.h> for inclusion.
-->c++ use the #include<iostream.h> for inclusion of header
files.
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What is encapsulation in ict?
What is abstraction and encapsulation?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
What is the types of inheritance?
What is destructor in oop?
What is oops concept with example?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is encapsulation and abstraction? How are they implemented in C++?
what are the ways in which a constructors can be called?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is encapsulation oop?
Which language is not a true object oriented programming language?
What are two types of polymorphism?