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 |
char* f() return "hello:"; void main() {char *str=f(); }
what is syntax error?
void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?
Given an int variable n that has already been declared and initialized to a positive value, and another int variable j that has already been declared, use a do...while loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j .
How to upgrade LOOP environment, I just mean, how can i make loop statement editable ? I just try some program using loop statement and checking it in multiple compilers. Every compiler showing different output, what's the wrong ? is it a compiler based problem, or loop based problem, tell me why ? and what will be the debugging process, for this kind of problem ?
void main() { int i=5; printf("%d",i+++++i); }
What is the code for following o/p * * * * * * * * * * * * * * * *
what is exceptions?
WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf("%d%d%d",x,y,z); }
What is probability to guarantee that the task a programmer is going to create will be created and be able to run on a particular system (RTOS/GPOS).
how to convert decimal to hexadecimal without using arrays just loops
Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?