what is the use of pointers

Answer Posted / vignesh1988i

1) pointers which points to a value indirectly through that variable containing that value..... so pointers are used for data security.

2) only by using pointers through functions we can return MORE THAN ONE VALUE AT A TIME.....

3) as above told execution will be faster.....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I rethow can I return a sequence of random numbers which dont repeat at all?

979


What is volatile variable in c with example?

786


What is string constants?

891


What is the sizeof () a pointer?

739


Is c still used?

802


What is array in C

928


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

858


How to write a code for reverse of string without using string functions?

1839


What is the difference between ‘g’ and “g” in C?

3444


find the sum of two matrices and WAP for it.

888


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

1858


What is the use of volatile?

829


Explain argument and its types.

796


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1200


Where define directive used?

825