pointers points to the memory address of another variable.....in functions we have two kind of variables the actual and dummy variable. when we operate on variables..the value of dummy variables are effected, but if we want to make changes in the actual variable then we have to refer to their address..and we can reach to address of the variables by only using pointers.
the main advantage is that the program is free to allocate memory as needed during runtime instead of being limited to what was allocated during compile & link time.
program to find maximum of two numbers using pointers
nahi malum
sorry
i cant write
pro c language to implement linear search using pointers
amara
They don't.
mystrcpy (char* dest, char* src) { while ((*dest++ = *src++) != '\0); }
#include<stdio.h)
swap (int *pa, int *pb) { *pa ^= *pb; *pa ^= *pa; *pa ^= *pb; }
Using this you specify that two pointers can't point on the same address
what are five advantages and five disavantages of using case structures to multiple alternative dicisions