answersLogoWhite

0

Is c plus plus platform dependent or platform independent?

Updated: 8/17/2019
User Avatar

Wiki User

11y ago

Best Answer

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.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is c plus plus platform dependent or platform independent?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why c plus plus is platform dependent?

C++ is not platform dependent. The implementation is, but not the language.


Is cloud computing is platform dependent or independent?

c is platform dependent


How do you get the c plus plus standard library on your compiler?

platform-dependent


How do you use graphicsh in c plus plus?

With platform-dependent libraries.


Is Visual C or Visual C plus plus platform independent?

No, M$ Windoze only.


Is it c plus plus support by window 7?

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.


Is c platform independent or dependent?

No. Not only will C source code have to be recompiled to work on different machines, but implementations of platform-specific concepts (file system management, UI, etc.) will have to be rewritten completely to work on a new machine.


How to create a thread in C plus plus?

Not part of the language, platform-dependent. Windows: CreateThread Posix: pthread_create in pthread.h


What is the syntax of clear screen in c plus plus?

It must be done by a platform-dependent function, it's "clrscr" from conio.h in TurboC


How can you display a circle on computer screen with the help of c plus plus programming language?

You cannot. At least not with generic C++. Graphics are platform-dependent and therefore requires a suitable API and library for your specific platform and its hardware.


What are the parts of c plus plus environment with drawing?

C++ has no built-in graphics methods. C++ is a machine-independent programming language, but graphics are machine-dependent. To make use of graphics of any kind, you must use a suitable graphics library. If you need cross-platform support, use a generic library.


How do you create a button in c?

platform-dependent