Looking for a Tutor Near You?

Post Learning Requirement »
x

Choose Country Code

x

Direction

x

Ask a Question

x

x
x
x
Hire a Tutor

Difference Between C And C++

Loading...

Published in: C / C++
12,204 Views

Comparison of C and C++ programs and basic changes we need to do to convert a C program into C++.

Ashish / Gwalior

17 years of teaching experience

Qualification: M.Tech. (Software Systems)

Teaches: Computer, C / C++, C# (C Sharp), Java And J2EE, Visual Basic, Java Script, PHP And MySQL

Contact this Tutor
  1. Difference between C and C++ Comparison of C and C++ programs and basic changes we need to do to convert a C program into C++. c #include void main() printf("Hello"); Output: Hello #include void main() printf("Hello\nwelcome Output: Hello Welcome #include void main() int x=25; float y=45.123456; Output #include void main() cout
  2. 25 45.123456 #include void main() int x; printf("Enter a number: od", &x); printf("Value of x Output Enter a number : 37 Value of x = 37 #include void main() int x,y,z; printf("Enter first number: "); od", &x); printf("Enter second number: "); od", &y); z=x+y; od + Ood Ood", x,y,z); 25 45.123456 #include void main() int x; cout
  3. Output Enter two Numbers: 25 15 25 + 15 = 40 Output Enter two Numbers: 25 15 25 + 15 = 40