It won't compile as program.c with gcc. However, using g++ does compile this, and running does output "this is a test".
Code:#include <iostream> using namespace std; //introduces namespace std int main( ) { cout << "this is a test" ; return 0; }