Answer Posted / manjulatha
use of pointers makes the code more efficient and compact.
1.to acess array elements
2. to return more than one value to a function.
3. to acess dynamically allocated memory.
4. to implement data structures like linked lists,trees.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
write a program fibonacci series and palindrome program in c
Can a file other than a .h file be included with #include?
Write a program to print "hello world" without using a semicolon?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Explain how do you print only part of a string?
what is the format specifier for printing a pointer value?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What is c programming structure?
What are the advantages and disadvantages of pointers?
What are the 5 elements of structure?
Why #include is used in c language?
How can you pass an array to a function by value?
What is adt in c programming?
How can variables be characterized?