They are! You can easily write programs that will compile and run on any platform. These will mostly be trivial and will require a bit of effort on the part of the programmer, but it can be done. Compiler directives can be used to filter platform-specific calls, thus the same code can produce code that is specific to any platform.
However, non-trivial programs would require an in-ordinate amount of effort, so most software is initially written to support a specific platform -- generally the one that is expected to generate the greatest profit. The design of the software is generally such that cross-platform versions can be ported relatively quickly after initial release (depending on the complexity). But this is not a limitation of C/C++, nor is it the fault of the various platform designers -- it is simply a matter of economics. There's no point writing a program for a platform relatively few people will actually use, you write for the most popular, or the one that best serves your needs (XBOX or PS3 for games software, for instance).
No, M$ Windoze only.
C++ is not platform dependent. The implementation is, but not the language.
c is platform dependent
WHY MEANS the java is a platform independent language for the sake of it has its own platform to run the program it doesn't require any platforms like c and C++
C++ is not platform-dependent. All you require is a compiler that supports the platform. Platform-specific compilers will generally include platform-specific headers and libraries.
With platform-dependent libraries.
platform-dependent
yes. coz assembly is procedural orinted , due to rules n regulations and restriction which make program lengthy , cumbersome, platform independent , project infeasibility,......
Platform-Independent code, is a code that can run on any Operating System. So to write Platform-Independent codes, don't use codes that can work ONLY in the OS you program it in. w4r3_w01f at live dot com
C, C++ and Java are cross-platform languages. NET is for Windows-only.
No. The term platform independence in Java does not mean that any other programming language cannot be run in multiple OS platforms. Actually platform independence means that the java code can be run in multiple platforms with little or no customization. The code that can execute in a Windows platform can run as it is in a Linux box, whereas other programming languages need to be customized based on the platform they will be implemented in.
The language itself is platform independent. However, specific implementations may be platform dependant. For instance, code written with Microsoft Visual C++ is generally intended to be compiled upon Windows platforms only, not Linux or Mac platforms. Although pre-compiler directives can filter machine specific code to suit the current platform, programmers need to be careful to avoid implementation-specifics when porting code to other compilers. If code is intended to be portable, it's better to use an implementation that conforms to the ISO standard, and that has implementations for all the intended platforms to accommodate platform-specific code.