Answers for "c++ and c"

C++
0

and c++

#include<iostream>
using namespace std;
int main(){
	int a;
	cin>>a;
	if(a >= 20 && a <= 30){
		cout<<"Il numero inserito è compreso tra 20 e 30";
	}
	else{
		cout<<"Il numero inserito non è compreso tra 20 e 30";
	}
}
Posted by: Guest on April-21-2021
0

c vs c

1.C++ compiles into machine code, while C# compiles to CLR, which is interpreted by ASP.NET.
2.C++ requires you to handle memory manually, but C# runs in a virtual machine which can automatically handle memory management.
3.C# does not use pointers, while C++ can use pointers anywhere.
4.C++ can be used on any platform, though it was originally designed for Unix-based systems. C# is standardized but is rarely used outside of Windows environments.
5.C++ can create stand-alone and console applications. C# can create a console, Windows, ASP.NET, and mobile applications, but cannot create stand-alone apps.
Posted by: Guest on August-10-2020

Browse Popular Code Answers by Language