answersLogoWhite

0

Well, C is not platform dependent. You can compile C into source code on a Windows, Mac, Unix or any other operating system as long as you are using that type of computer. You could write code that can be compiled on almost any operating system. But the programs you write may or may not be able to move from system to system based on whether or not you use tools specific to that operating system. Java is not actually platform independent either because you need JVM to run it. It's just that most computers come with JVM installed.

Both of the above are wrong. The C language specification itself is platform-dependent, as there are numerous places where ambiguities (both intentional and unintentional) cause different behavior according to how both the platform AND the C-compiler writer chose to behave. Thus, while it is possible to write a C program which is highly-portable, that program is still dependent on the exact implementation of the C compiler and OS it runs on. So, the behavior of a C program depends on the platform.

The Java Language is platform INDEPENDENT, since it does NOT have the implementation ambiguities of C, and has a completely-standardized interface to all platforms (the JVM spec). Naturally, the JVM program is plaform dependent, as creating it to conform to the Java VM specification requires knowledge of the peculiarities of the platform.

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

What are the Examples of portable programming language?

Many programming languages allow programs to be portable from one kind of computer to another, including* the C programming language* Pascal* Forth* C++* Java* Pythonand many others. Yes, the C programming language was designed to encourage machine-independent programming.The C programming language is portable to more CPUs than any other programming language.


Is c language is heterogeneous?

Programming languages cannot be 'portable', but programs written in C might be portable, if they follow the strictest standards and do not use platform-specific features or functions.


What is lint in c language?

Lint is suspicious or non-portable code. Lint is also the name of a program that looks for suspicious or non-portable code.


In which Language is Linux written?

Linux supports any written language: it understands Unicode natively, so it can display the characters of any language with the appropriate locales included. As far as programming languages, Linux is written in C, but almost any language, from assembly to C to C++ to Python to Perl to .NET can be used on it.


How can you make a graphics program portable?

Any program can become portable (if that means multi-platform) by rewritting in a programming language like Java and including the jvm with the program First, use a portable programming language and associated portable libraries. Java is one, others are C/C++, FreeBASIC, The suite of GCC when coupled with Cygwin. There are many portable graphics libraries to use. A few are: Simple Direct Media Layer (Video, Audio and Input) OpenGL 2d & 3d Graphics Included with almost ALL systems MESA (A layer on top of OpenGL)

Related Questions

Why is c plus plus language more portable than c language?

They are equally portable. Conditional compilation is supported by both languages.


What are the Examples of portable programming language?

Many programming languages allow programs to be portable from one kind of computer to another, including* the C programming language* Pascal* Forth* C++* Java* Pythonand many others. Yes, the C programming language was designed to encourage machine-independent programming.The C programming language is portable to more CPUs than any other programming language.


Is c language is heterogeneous?

Programming languages cannot be 'portable', but programs written in C might be portable, if they follow the strictest standards and do not use platform-specific features or functions.


Why is Unix portable?

Unix was rewritten in the C Programming language and not in assembly language. The migration from assembly language to the higher-level language C resulted in much more portable software, requiring only a relatively small amount of machine-dependent code to be replaced when porting Unix to other computing platforms. (mihir)


What is lint in c language?

Lint is suspicious or non-portable code. Lint is also the name of a program that looks for suspicious or non-portable code.


What has the author Patricia Giencke written?

Patricia Giencke has written: 'Portable C++' -- subject(s): C++ (Computer program language)


In which Language is Linux written?

Linux supports any written language: it understands Unicode natively, so it can display the characters of any language with the appropriate locales included. As far as programming languages, Linux is written in C, but almost any language, from assembly to C to C++ to Python to Perl to .NET can be used on it.


How do you make something portable?

something is said to be 'portable' if you can take it with you...


How can you make a graphics program portable?

Any program can become portable (if that means multi-platform) by rewritting in a programming language like Java and including the jvm with the program First, use a portable programming language and associated portable libraries. Java is one, others are C/C++, FreeBASIC, The suite of GCC when coupled with Cygwin. There are many portable graphics libraries to use. A few are: Simple Direct Media Layer (Video, Audio and Input) OpenGL 2d & 3d Graphics Included with almost ALL systems MESA (A layer on top of OpenGL)


Difference between high level language and low level language and machine language in tabular form?

| Feature | High-Level Language | Low-Level Language | Machine Language | |------------------------|------------------------------|----------------------------|-----------------------------| | Abstraction Level | High (closer to human language)| Medium (closer to hardware) | Low (binary code for CPU) | | Readability | Easy to read and write | Less readable, more complex | Not human-readable | | Portability | Highly portable across platforms | Less portable, hardware-specific | Not portable, specific to architecture | | Examples | Python, Java, C++ | Assembly language | Binary code (0s and 1s) |


How change Photoshop language portable?

Portable version is not supported by Adobe, there isn't portable version available, you should think about using portable Photoshop.


How is C program portable?

Your program is portable if you can compile and execute it on different platforms.