can C programs use iostream? i've done it in C++, and read that it can be done in C, but i keep getting compilation errors.
#include <iostream>
using namespace std;
main()
{
cout << "test";
}
can C programs use iostream? i've done it in C++, and read that it can be done in C, but i keep getting compilation errors.
#include <iostream>
using namespace std;
main()
{
cout << "test";
}
>can C programs use iostream?
No.
you can't but some compilers will treat a file that has a .c extension as a c++ file if it contains c++ syntax which may make some people think you can.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.