what is the main difference between c and c++?
Answer Posted / dharmesh singh
c++ is a super set of c. c++ has data security but c hasn't any data security. also c++ has overloading, inline but c hasn't
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is encapsulation with real life example?
What is polymorphism and why is it important?
This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.
What do you mean by Encapsulation?
Write a program to sort the number with different sorts in one program ??
What is a null tree?
What are the benefits of interface?
What is the importance of oop?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What exactly is polymorphism?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is abstraction encapsulation?
c++ program to swap the objects of two different classes
What are objects in oop?