answersLogoWhite

0

Assignments between different types of pointer.

Example:

int i, *ip;

char c, *cp;

ip= &c; ip= cp; cp= &i; ip= cp; /* all wrong */

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

33 What does the error 'Null Pointer Assignment' mean and what causes this error?

This error appears due to incorrect assignment to pointer and pointer tries to access illegal memory...


What is a segmentation fault?

An error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers in the source code, dereferencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.


What is a segment fault?

An error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers in the source code, dereferencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.


What is the name of the error when amount in figure differs from amount in words?

conversion error


What will happen if the spring breaks in electrodynamometer?

there will be no control in the pointer hence it will show error in the readings


What does bus error mean?

bus error is caused mainly due to the misaligned data members i.e if int starts at an odd memory location then accessing it as int would cause bus error. Trival example for this is, allocating memory for integer pointer and trying to access the region with char pointer.


What is parallax or sighting errors?

while doing experiments the analog readings should be taken very carefully ..the pointer should be in a parallel axis with your eyes so that the reading will not deviate from right one.otherwise error may occur this error is called parallax error. this error can be avoided by placing mirror at bottom of dial to adjust the axis with your eye by seeing in to mirror and the pointer


What is the effect of various arithmetic operators on a pointers?

Error message, mainly. The following operations are legal: ptr + integer (pointer) ptr - integer (pointer) ptr - ptr (integer)


Do police tap mobile phones through sim card?

yes of course, if they are suspecious on you.


What do you do if there is an error converting on itube?

Once there is a error on the conversion, delete any partial conversions that itube may have created, then try the conversion again. If the error continues then you will need to contact itube tech support with help for the problem.


What is null pointer assignment?

This error message means that somewhere in your program you have used a pointer-varible containing NULL-value. (Within an actual OS it with stop the program immediately, but in MS-DOS it doesn't.)


Why you get null pointer assignment error occurs in c?

You haven't assigned the pointer yet, so it's initialized as NULL, or you're trying to assign NULL to the value of the pointer. You have to check if the value is NULL before you use it, or you'll end up with errors just like this.