My self Dhilib...
it is a simple query. if statement is a basic control statement. mostly it used in all the languages. also in c plus plus
syntax:
if(test condition)
{
true statements;
}
else
{
false-statements;
}
Example:
void main()
{
int a,b;
a=54;
b=65;
if(a>b)
{
cout<<" a value is big";
}
else
{
cout<<"b value is big";
}
}
Yes
result = a * b * c;
Primarily OOP support, but there are minor syntax difference. By and large anything you can do in C you can also do in C++.
Build it, link it, run it.
C++ Extension Name is... Syntax is: File Name.extension name. Ex: ankit.cpp
std::cout<<42<<std::endl;
Object-oriented programming principals, a more consistent syntax and improved type-safety.
C++ uses a syntax that is exactly the same as in C, with the addition of reserved words that are specific to C++. C ++ menggunakan sintaks yang persis sama seperti di C , dengan penambahan kata-kata reserved yang khusus untuk C++.
type variable {[optional array size]} {= optional initializer};
The answer is really beyond the scope of this site. You would probably need to buy a textbook.
No. Java takes some ideas from C++, so there are certain similarities, especially in the basic syntax. But it is a different language.
Usually, but not always. For example the following is legal in C, but illegal in C++: char new [3] = "ABC";