menu search
brightness_auto

Recent questions and answers in Code

I could use two loops to access the multidimensional array but that won't work here as it takes an int pointer as the parameter. Also here is how the function is to be called in main print_diagsums((int *)a2, 5) where a2 is a multidimensional array
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
0 answers
What is the command line to use to list the files in the current directory?
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
0 answers
What does document.querySelector() do in JavaScript?
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
0 answers
I often hear about Django along with python. What is Django and how it can be used ?
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
0 answers
How do I get the current date and time in PHP?
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
What are tools used for it?
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
0 answers
what is PHP functions?
thumb_up_off_alt 4 like thumb_down_off_alt 0 dislike
4 answers
How to create tables in HTML?
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
2 answers
How to convert from Decimal to binary and from Binary to other with example?
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
4 answers
What does it mean Bit Manipulation?
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
3 answers
I have a struct as follows, with a pointer to a function called "length" that will return the length of the chars member. typedef struct pstring_t { char * chars; int (* length)(); } PString; I have a function to return the length of the characters from ... initializeString() that returns a pointer to a PString: PString * initializeString() { PString *str; str->length = &length; return str; }
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
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 ... 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 ... 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
if i want to copy the string best school into a new space in memory what are the options of statements i can use to reserve enough space for it
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
Do I cast the result of malloc? In this question, someone suggested in a comment that I should not cast the result of malloc. i.e., I should do this: int *sieve = malloc(sizeof(*sieve) * length); rather than: int *sieve = (int *) malloc(sizeof(*sieve) * length); Why would this be the case?
thumb_up_off_alt 1 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
Is Python the best coding language to learn? What are the best languages that have the most marketability?
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
1 answer
If ++ can do everything C can, and even more, why is C still in use?
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
0 answers
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 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
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
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 ++; ... 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
Having a hard time trying to figure out why my code doesn't return anything. I want it to return '3628800' as 10! (factorial). Any help is appreciated. #include <stdio.h> void ft_iterative_factorial(int nb); int main() { ft_iterative_factorial(10); return 0; } void ft_iterative_factorial(int nb) { int i; int ... (num <= 0) fact = 1; else { i = 1; while (i <= num) { fact = fact * i; i++; } } }
thumb_up_off_alt 5 like thumb_down_off_alt 0 dislike
0 answers
what is the use of memset() in C programming with examples?
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
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 2 like thumb_down_off_alt 0 dislike
1 answer
What is the diffrence between Shunt capacitor bank and Static Var Conpensator(SVC)?
thumb_up_off_alt 5 like thumb_down_off_alt 0 dislike
2 answers
what is strcmp() function in C Programming language?
thumb_up_off_alt 5 like thumb_down_off_alt 0 dislike
1 answer
Why It’s Important to List Key Skills on LinkedIn?
thumb_up_off_alt 5 like thumb_down_off_alt 0 dislike
1 answer
To see more, click for all the questions in this category.
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.
...