difference between c/c++ programing language?
what is necessesity of c++ when existing c programing
language?
Answers were Sorted based on User's Feedback
Answer / kavibharathi
The main reason is lengthy C programs lose "Global View" and
become very difficult to visualize as a single concept.
C++ is an advance than C lang which has more features...
But comparing efficiency C is more efficient than C++
But C++ has more flexibility than C.
Also C++ is both combination of OOP and OBP concepts.
C++ has more features as
1.Object oriented
2.Information hiding
3.Standard Template Library
4.Inheritance
5.Constructors & Destructors
6.Exception Handling
7.Overloading
| Is This Answer Correct ? | 28 Yes | 0 No |
Answer / sathiyabama t
Structures of C++ can have functions in them but C
structures can only have variables
For I/O C++ has iostream.h and C has stdio.h.
| Is This Answer Correct ? | 3 Yes | 1 No |
what is exceptions?
2. A student studying Information Technology at Polytechnic of Namibia is examined by coursework and written examination. Both components of assessment carry a maximum of 50 marks. The following rules are used by examiners in order to pass or fail students. a. A student must score a total of 40% or more in order to pass (total = coursework marks + examination marks) b. A total mark of 39% is moderated to 40% c. Each component must be passed with a minimum mark of 20/50. If a student scores a total of 40% or more but does not achieve the minimum mark in either component he/she is given a technical fail of 39% (this mark is not moderated to 40%) d. Grades are awarded on marks that fall into the following categories. Mark 100-70 69-60 59-50 49-40 39-0 Grade A B C D E Write a program to input the marks for both components (coursework marks out of 50 and examination marks out of 50), out put the final mark and grade after any moderation. [30]
what is the error in the following code: main() { int i=400,j; j=(i*i)/i; }
Why are memory errors hard to debug?
I'm having trouble with coming up with the correct code. Do I need to put a loop? Please let me know if I'm on the right track and what areas I need to correct. I still don't have a good grasp on this programming stuff. Thanks =) The assignment was to write a program using string functions that accepts a coded value of an item and displays its equivalent tag price. The base of the keys: 0 1 2 3 4 5 6 7 8 9 X C O M P U T E R S Sample I/O Dialogue: Enter coded value: TR.XX Tag Price : 68.00
What are the different types of errors in C and when they occur?
void main() { int i=5; printf("%d",i+++++i); }
How to create a program that lists the capital country when told what the original country is? (Terribly sorry, I'm a novice programmer and would appreciate any help ;). Cheers, Alexxis
write the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;
Write a program to accept two strings of Odd lengths. Then take all odd characters from one string and even characters from the other and concatenate and produce a string.
#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
how to convert decimal to hexadecimal without using arrays just loops