#include
int main (int argc, char **argv)
{
int i;
for (i=0; i
return 0;
}
Pointers is a very powerful feature that is available in the C programming language but at the same time it is very confusing and many of the issues that arise out of C programs is because of incorrect or inappropriate usage of pointers. Hence the creators of Java language opted to exclude the pointers feature and create Java as a language where the programmer cannot access the native memory area and the memory accessing is left to the system to be taken care of.
Accessing data by address. Some data-structures, like lists and trees, are usually implemented using pointers.
pro c language to implement linear search using pointers
bmbmbvjmgjmgj
Write computer-programs, I suppose.
Using IDE environment
You do not use pointers in Java because the language designers decided to abstract memory management to a higher level in Java than in C. The reason for this is that it is easy to make mistakes using pointers and other lower level memory management techniques. These mistakes can lead to bugs. hard to read code, memory leaks that waste system resources, and security issues. Instead for the most part Java takes care of memory management for the user who can instead specify behavior though the object oriented techniques that are safer and easier to understand. The downside is that the programmers lose some control and flexibility in using memory. Also, programs using Java take a small performance hit in some cases because of the extra work Java has to do to manage memory itself. They are, however in Java they are called references.
It makes no difference - if you are using drugs illegally, you should not become a nurse.
It is not that simple. Obviously, sub-optimal programs can be optimized, which may or may not include using pointers, but it requires a skilled programmer.
low level language is not portable because using these language we are not run programs where we not create those programs or we r not able to run those programs to another machine.....
Using this you specify that two pointers can't point on the same address
program to find maximum of two numbers using pointers