menu search
brightness_auto

Recent questions tagged alx software engineering program

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
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
Write a program that adds positive numbers. Print the result, followed by a new line If no number is passed to the program, print 0, followed by a new line If one of the number contains symbols that are not digits, print Error, followed by a new line, and return 1 You can assume that numbers and the addition of all the numbers can be stored in an int
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
Question #8 Which command should you use to create a directory? rmdir rm mv cp mkdir Question #9 Which command should you use to delete a directory? cp mv rm mkdir rmdir
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
1 answer
Question #4 Which command should you use to create an empty file? pwd touch cd less ls Question #5 Which command should you use to copy a file (or directory if additional argument)? mkdir rm mv cp rmdir Question #6 Which command should you use to rename or move a file (or directory)? cp mv rm mkdir rmdir Question #7 Which command should you use to delete a file (or directory if additional argument)? rmdir mv rm mkdir cp
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
0 answers
Question #0 Which command should you use to display the current path of your current directory? pwd cd ls touch less Question #1 Which command should you use to list all files of your current directory? pwd ls cd less touch Question #2 Which command should you use to change directory? touch ls pwd less cd Question #3 Which command should you use to display the content of a file? pwd less cd ls touch
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
0 answers
Write a function that prints a string in reverse. Prototype: void _print_rev_recursion(char *s);
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
2 answers
Question #1 What does this code print? void print(int nb) { printf("%d", nb); -- nb; if (nb > 0) { print(nb); } } int main(void) { print(4); return (0); } 4321 43210 321 3210 Question #2 What does this code print? void print(int nb) { printf("%d", nb); nb ++; if (nb < 10) { print(nb); } } int main(void) { print(4); return (0); } 987654 109876543 345678910 456789 Question #3 What does this code print? void print(int nb) { if (nb < 0) { return; } printf("%d", nb); nb --; print(nb); } int main(void) { print(4); return (0); } 01234 43210 1234 4321 Question #4 What does this code print? int print(int nb) { if (nb < 0) { return (0); } printf("%d", nb + print(nb - 1)); nb --; return (nb); } int main(void) { print(4); return (0); } 64200 00246 01234568
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
1 answer
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
What is recursion in C Programming and what is recursive function in C Programming with example
thumb_up_off_alt 5 like thumb_down_off_alt 0 dislike
3 answers
Write a function that copies memory area. Prototype: char *_memcpy(char *dest, char *src, unsigned int n); The _memcpy() function copies n bytes from memory area src to memory area dest Returns a pointer to dest Repo: GitHub repository: alx-low_level_programming Directory: 0x07-pointers_arrays_strings File: 1-memcpy.c
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
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
Quiz questions Question #0 var = "Best"; What is the type of var? string char * int * Question #1 What is wrong with the following code? int n = 5; int array[10]; int i = 3; array[n] = i; Nothing is wrong It is impossible to declare the variable array this way The array array is not entirely initialized It is not possible to access array[n] Question #2 What is wrong with the following code? int n = 5; int array[n]; int i = 3; array[n] = i; Nothing is wrong It is impossible to declare the variable array this way The array array is not entirely initialized It is not possible to access array[n] Question #3 What is wrong with the following code? int n = 5; int array[5]; int i = 3; array[n] = i; Nothing is wrong It is impossible to declare the variable array this way The array array is not entirely initialized It is not possible to access array[n] Question #4
thumb_up_off_alt 5 like thumb_down_off_alt 0 dislike
0 answers
I recently received an email congratulating me that I have accepted into ALX Software Engineering Program. I don't know anything about this institution before and want to know about it more. Can anyone help me what courses they are offering?
thumb_up_off_alt 5 like thumb_down_off_alt 0 dislike
1 answer
Can Anyone Explain What is ALX Software Engineering Program?
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
0 answers
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.

683 questions

621 answers

25 comments

2.4k users

...