Differentiate between c++ and perl.



Differentiate between c++ and perl...

Answer / Vishal Rastogi

C++ is a statically typed, compiled programming language that supports object-oriented and generic programming. Perl is a dynamic, interpreted programming language focused on easy data manipulation and web scripting.n
1. Typing: C++ is statically typed, which means variables are defined with their data type at compile time. Perl is dynamically typed, which means variables don't have an explicit data type until they are assigned a value.
2. Compilation: C++ code is compiled before execution. Perl code is interpreted during runtime.
3. OOP: Both support object-oriented programming, but C++ has more advanced features and strict syntax rules compared to Perl.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

How many loop control keywords are there in perl?

1 Answers  


What are arrays in perl?

1 Answers  


How do I print the entire contents of an array with Perl?

1 Answers  


How would you replace a char in string and how do you store the number of replacements?

2 Answers  


What are different data types that perl supports. Elaborate on them.

1 Answers  


What is the difference between module and package?

4 Answers   EDS, IBM, Symantec,


Explain goto name?

1 Answers  


What does next statement do in perl?

1 Answers  


Explain the difference between declarations of 'my' and 'local' variable scope in perl?

1 Answers  


If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?

1 Answers  


What purpose does each of the following serve: -w, strict, - T ?

2 Answers  


What is the difference between perl array and perl hash?

1 Answers  


Categories