answersLogoWhite

0

Can c run on any machine?

User Avatar

Anonymous

13y ago
Updated: 8/19/2019

No. Actually, C-source doesn't run on any machine, but many computers do have C-compilers.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Can you run Linux or Windows on any machine?

with Linux you can run in almost any machine, but you need a minimal requirements and knowledge about the machine a example people cant run Linux in some cell phone has the power to run Linux but can´t because it is hard to get the information about the processor


What is byte code and native code?

native code is machine code each machine has its won set of istruction one machine's native code won't run on another While bytecode is what java produces and it can run on any machine. when we run bytecode it first get to compile to machine code and then get to run.


Why the execution of java program is slower than a C program?

This is because Java runs it's code through a Virtual Machine which compiles it and runs it. C will compile native on your machine and the code will be run directly, without the use of a virtual machine.


Why c is machine independent language?

C source code is portable; it can be compiled upon any machine with a suitable C compiler in order to produce the machine-dependant code (the machine code). However, C can also be used to write machine-dependant code, or code that is dependant upon specific platforms. In order to be completely portable, the code must use the C standard library and/or generic libraries.


Does the C plus plus programming language use a virtual machine?

No, it does not. But Microsoft Visual Studio 2008 allows you to connect to a virtual machine and run your projects "sandboxed".


What did Gerald Ford mean when he said that compromise is the oil that makes governments go?

he was comparing government to machine, meaning that a machine cannot run without any oil, likewise, a government cannot run without any compromise.


How to unclog your Keurig machine effectively?

To unclog your Keurig machine effectively, first remove the water reservoir and clean it thoroughly. Then, run a cycle with vinegar to descale the machine and remove any buildup. Finally, run a few cycles with clean water to rinse out any remaining vinegar.


How do you run a C program on SunOS?

A "C" program has to be compiled to machine code on any Unix system, whether it is Solaris or some other version. After compiling the program, execute it by typing in the name of the compiled program created by the "C" compiler. The standard name is 'a.out', but it could be named anything you want.


Why c and c plus plus programs can not work on all platform's?

C and C++ programs can run on any platform that supports a C or C++ compiler/linker. Platforms that do not have a compiler/linker cannot be targeted. For those that do, programs must be specifically written for those platforms, typically using precompiler directives to filter out statements intended for other platforms. Programs must also be compiled separately upon each supported platform. This is unlike Java which only needs to be compiled once on any platform and can then by executed upon any other platform. This is achieved by the fact Java emits byte code suitable for interpretation by the Java virtual machine. There are very few platforms these days that do not have a Java virtual machine implementation. Both C and C++ emit native machine code, hence the need to compile separately for each platform. However, C and C++ programs perform many times faster than their Java counterparts as they do not need to be interpreted by a virtual machine.


What will be if java program is being shifted from 64 bit machine to 32 bit machine?

A Java program should run on any platform (hardware + operating system) for which a JVM (Java Virtual Machine) is installed. Unlike the "C" language, the size of data items in Java does not depend on the platform; for example, an int will always have a size of 32 bits, no matter how the underlying computer hardware is organized.A Java program should run on any platform (hardware + operating system) for which a JVM (Java Virtual Machine) is installed. Unlike the "C" language, the size of data items in Java does not depend on the platform; for example, an int will always have a size of 32 bits, no matter how the underlying computer hardware is organized.A Java program should run on any platform (hardware + operating system) for which a JVM (Java Virtual Machine) is installed. Unlike the "C" language, the size of data items in Java does not depend on the platform; for example, an int will always have a size of 32 bits, no matter how the underlying computer hardware is organized.A Java program should run on any platform (hardware + operating system) for which a JVM (Java Virtual Machine) is installed. Unlike the "C" language, the size of data items in Java does not depend on the platform; for example, an int will always have a size of 32 bits, no matter how the underlying computer hardware is organized.


Both Java and C plus plus compile source code to object code yet Java is called an interpreted language while C plus plus is called a compiled language explain this notion?

It can easily be explained by the fact that Java does not compile to object code. Java compiles to byte code that is suitable for interpretation by the Java virtual machine. C++ compiles to native machine code and therefore does not require interpretation of any kind. As a result, C++ programs run somewhat quicker than equivalent Java programs. However, because Java is interpreted, it is highly portable. Any machine with a Java virtual machine implementation (which is pretty much every device today) can run Java programs built from a single compilation. C++ requires that the code be written specifically for each platform and that the source be compiled separately upon each supported platform.


What is a vertical line with a rise over run relationship that does not exist?

It is a line of the form y = c where c is any constant.It is a line of the form y = c where c is any constant.It is a line of the form y = c where c is any constant.It is a line of the form y = c where c is any constant.