answersLogoWhite

0


Best Answer

Because no-one knows what the sum of two pointers should be...
of course you can convert them to integers and then sum them, but why on earth would you do that?

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Possible, with type-casts, but makes no sense.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why Two pointers cannot be added in c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How to multiply two int pointer variable in C language?

You do not multiply pointers. If you want to multiply the values that they point to you must dereference them, usually with a *


Can you swap two matrix?

Provided both matrices are mutable, two matrices A and B can be swapped like any other two items: create temporary storage to store a copy of A, then assign B to A, and finally assign the temporary copy of the previous version of A to B. Note that in the C programming language, matrices cannot be assigned to each as such. One implementation of this algorithm might operate on the basis of references (pointers), and can thus swap two matrix references by swapping two pointers in the manner detailed above. Implementations wishing to actually transfer the data held in one matrix to another would use a library function such as memcpy() to transfer data.


What are the two common problems with pointers?

Memory leakage, problems with tracking and managing.


What are near pointers in c?

Just forget it, it was a question twenty years ago when we worked in MS-DOS with a 16/20 bit CPU. Near pointers contain 16 bits, far pointers contain 32 bits (but only 1MB (or 1MB+65520 bytes) are really addressible).


What is thread pointer?

It is a pointer.You can pass a smart pointer from one thread to another, and the two threads are free to use their smart pointers just as they were native pointers. They can copy them, assign them, and do whatever they want with them, and the smart pointer will not get you into trouble.

Related questions

How do you get score 6?

3 two-pointers or 2 three-pointers


Why pointer can't be added in computer language C?

You can add a point in C/C++. The legal operations on a pointer are that you can 1.) add a constant, 2.) subtract a constant, and 3.) subtract two pointers that refer to the same array. Anything else is meaningless.


How to multiply two int pointer variable in C language?

You do not multiply pointers. If you want to multiply the values that they point to you must dereference them, usually with a *


What two numbers add up to -8 but when added equals 8?

0


What are restricted pointers in C99?

Using this you specify that two pointers can't point on the same address


How many shots to get 40000 points in the NBA?

that would be 20000 two pointers or about 13333 three pointers


What kind of drills do you use for three pointers two pointers and foul shots?

just keep shooting its not that hard


Why are there two pointers on the Wheel of Fortune wheel?

There are not those are to slow the wheel down by hitting the metal bars and are not the pointers


What two digit numbers whose two digits added together equal 42 and multiplied together equal 82?

Two (or four) digits added together cannot equal 42. Two-digit numbers multiplied together cannot equal 82.


What one question in the English language cannot be answered no?

Every question in the english language can be answered with a 'no'.But there are many questions that cannot truthfully be answered with a 'no'."Are you awake?" and "Are you alive?" are two.


How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


What two invasions added additional words to the evolving English language?

German Invasion and Norman Invasion