The program consists of an array of 10 numbers, and I ask for a number, if that number is tango to show all the even numbers of the array and its average, and if it is odd, the same, how can I do it only using?
This question is about C, pointers and gcc.
My program writes the number 10 in 5 positions adjacent to the address pointed by the variable num. Apparently those 10's are recorded correctly but only for a while. When I do the second FOR and try t...
The function of bottom of all, extra , does not work correctly, before reaching the first if after while the program closes me. What can be wrong?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>...
I'm doing a few exercises in which I have to compare words from a string of characters entered by the user, in an exercise I have to see how many times a word is repeated in the whole chain that the user entered and in another exercise I have to...
My idea is to be able to read a pdf and then create a txt inserting line by line the pdf text, without images or anything like that, but I want to do it purely in C (not c ++) and I can not find any library that is moderately far easier since I...
The exercise consists of making an employee-type structure that contains:
namemployed
sex
salary
and take out on the screen the name of the two employees with the highest and lowest salary.
The output must be:
How many employ...
I have a problem with the following code. The exercise tries to simulate a row that has random number of people passing through three boxes, when a box is empty an element is removed from the original row and goes to box C1, C2 or C3 and once th...
I wanted to ask if anyone can think of how I can show a number that I receive per ticket, for example if I receive 2354, how can I show it like this:
2 3 5 4. Separated by spaces
thanks in advance