menu search
brightness_auto

Recent questions tagged pointers

Question #3 This void (*anjula[])(int, float) is: A pointer to a function that takes an int and a float as parameters and returns nothing A pointer to a function that takes an array of int and float as a parameter and returns nothing A pointer to a function that takes an int and a float as parameters and returns an empty array An array of pointers to functions that take an int and a float as parameters and returns nothing A pointer to an array of functions that take an int and a float as parameters and returns nothing Question #4 What does a pointer to a function point to (check all correct answers if there is more than one)? data code The first character of the name of the function The first byte of code of the function
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
0 answers
Question #0 Which one is a pointer to a function? int func(int a, float b); int *func(int a, float b); int (*func)(int a, float b); (int *)func(int a, float b); Question #1 To store the address of this function: void neyo(void); to the variable f of type pointer to a function that does not take any argument and does not return anything, you would do (check all correct answers if there is more than one): f = neyo; f = &neyo; *f = neyo; *f = &neyo; Question #2 If f is a pointer to a function that takes no parameter and returns an int, you can call the function pointed by f this way (check all correct answers if there is more than one): f(); (*f)(); f;
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
0 answers
What does this code print? void print(int nb) { printf("%d", nb); nb --; if (nb > 0) { print(nb); } } int main(void) { print(2); return (0); } 012 12 21 210
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
1 answer
How to declare a Pointer to Pointer (Double Pointer) in C?
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
0 answers
Write a function that fills memory with a constant byte. Prototype: char *_memset(char *s, char b, unsigned int n); The _memset() function fills the first n bytes of the memory area pointed to by s with the constant byte b Returns a pointer to the memory area s FYI: The standard library provides a similar function: memset. Run man memset to learn more.
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
What are pointers in C Programming and how can they are assigned?
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
1 answer
To see more, click for the full list of questions or popular tags.
eForumAfrica, where you can ask questions and receive answers from other members of the community. Find the answer to your question, help others by answering their questions.

702 questions

631 answers

25 comments

2.5k users

...