What is function pointer and where we will use it
Answers were Sorted based on User's Feedback
Answer / raghanna
A function pointer is a variable that stores the address of a function that can later be called through that function pointer. This is useful because functions encapsulate behavior. For instance, every time you need a particular behavior such as drawing a line, instead of writing out a bunch of code, all you need to do is call the function.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / bsreddi
A function pointer is a type of pointer in C, C++ and other
C-like programming languages. When dereferenced, a function
pointer invokes a function, passing it zero or more
arguments just like a normal function. In programming
languages like C, function pointers can be used to simplify
code, such as replacing large switch statements.
| Is This Answer Correct ? | 5 Yes | 5 No |
What are the properties of union in c?
12344321 123 321 12 21 1 1 how i print this program??
5 Answers DSR Management, Winit,
printf("%d",(printf("Hello")); What it returns?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
How can draw a box in cprogram without using graphics.h header file & using only one printf(); ?
How do you convert strings to numbers in C?
Explain what is #line used for?
Is exit(status) truly equivalent to returning the same status from main?
What is the difference between pure virtual function and virtual function?
when user give a number it multiply with 9 without useing '+' and '*' oprator
How to convert a binary number to Hexa decimal number?? (Note:Do not convert it into binary and to Hexadecimal)
du u know test pattern for robosoft? Plz share
1 Answers RoboSoft, TATA, Wipro,