answersLogoWhite

0

Compatible data types are data types that are intrinsically the same. For instance,

typedef int myint;

myint x = 0x7fffffff;

int y = x; // x and y are the same type, so assignment is permitted.

int * p = &x; // compatible, p points to x.

*p = y; // compatible, but y is a value, not a memory address.

short z = x; // compatible, but z will be truncated to -1.

z is -1 because x appears in memory in reverse order: 0xffffff7f. Since z is only two bytes in length it is equal to 0xffff after assignment, which equates to -1.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the most common type of compatibility that a software manufacturer will provide for new versions of their software?

backward compatibility but not forward compatibility


What should you do to ensure that your website is accessible to the widest audience?

c. consider device compatibility and assistive technology.page 428 c. consider device compatibility and assistive technology.


Major advantage in cpp compared to c?

The major advantage of C++ over C is the Object Oriented Programming compatibility in C++.


What are the different types of plugs available for electrical appliances?

The different types of plugs available for electrical appliances include Type A, Type B, Type C, Type D, Type E, Type F, Type G, and Type I. Each type is designed for use in specific regions and has a unique shape and configuration to ensure compatibility with the corresponding electrical outlets.


In my system C language does not support for fullscreen mode why?

Your question has nothing to do with C language, it's about your Windows' DOS-compatibility (or incompatibility).


Disadvantages of c plus plus over c?

There are no disadvantages as such since everything you can do in C you can also do in C++, with relatively minor alterations to conform with C++'s stricter type safety. C++ essentially inherits all that is good about C, and attempts to fix all that is bad without overly compromising backward compatibility, as well as adding object-oriented programming support, which constitutes the major difference between C and C++.


Why c plus plus is partially object oriented?

To allow backward compatibility and interoperability with ANSI C, which is entirely non-object-oriented.


What determines compatibility between a motherboard and a video card?

The Slot Type


Why c plus plus called as paritial oop?

C++ is only partially OOP because it is a superset of C and, for the sake of backward compatibility, retains the concept of primitive data types (such as integrals like char and int) and pointer data types, which are all strictly non-object-oriented. In Java and C#, there is no concept of a primitive data type. Even integral types such as int are treated as objects and there is no concept of a pointer data type.


What has the author J C Toler written?

J. C. Toler has written: 'Electromagnetic compatibility program plan' -- subject(s): Radio, Interference


Can people with the same blood type have a baby?

Yes, people with the same blood type can have a baby. Blood type compatibility is not a factor that affects the ability to conceive a child. However, blood type compatibility may become important during pregnancy if the mother is Rh-negative and the baby is Rh-positive.


What is the bottom bracket compatibility of this bicycle frame?

The bottom bracket compatibility of this bicycle frame is determined by the type and size of bottom bracket that can be installed on it. It is important to match the bottom bracket type and size with the frame's specifications to ensure proper fit and performance.