Questions tagged as 'c'

2
answers

Can someone explain the recursion in C? [closed]

I am taking a course in udemy about programming in C and I am going through the theme of recursion . It turns out that I'm getting a little complex, but it's mainly because of the concept or its function as such that I can not understand it...
asked by 23.06.2018 / 01:40
1
answer

I need to print only the first two vowels of a word in c

I need to print only the first two vowels of a word in c. Example: Computer print only: ou. I tried it in many ways but none of them worked for me.     
asked by 05.05.2018 / 15:06
1
answer

How to show my path in linux, but using c [closed] language

I need to get the current path of my folder in linux, using c language, does anyone know how to do it?     
asked by 10.05.2018 / 21:46
1
answer

Counter in recursive function

I have to perform a recursive procedure that prints this:    '\ n'   -----one   ----two   ---3   --4   -5 and for now I have this code that prints the numbers but not the "-". #include <stdio.h> // sprintf, scanf, ungetc, stdin...
asked by 13.04.2018 / 22:10
1
answer

How do arrays work with C pointers?

I was recently given a code in C language to continue developing a new programming language and I found some instructions that caught my attention on how to declare an array and use it, but that I had seen them before. Attached an example of the...
asked by 20.01.2018 / 06:46
2
answers

Does anyone know how I can change the value of a variable from time to time?

I am simulating an investor platform and I have variables where "stock shares" are kept, the investor registers and accesses a menu where there is an option to see the quotes, what I want to do is that the quote change every 2 minutes. This is w...
asked by 28.11.2017 / 21:57
1
answer

Problem when counting data

My problem is this, I have to count the data of a text file that are separated by a line break. The problem is that when I run it, I get 0 data. I enclose the code that I wrote, I do not know where the error may be. #include "head.h" int m...
asked by 27.11.2017 / 22:29
1
answer

Problem with operations of elements in an array

I have a problem trying to show the result of the division of the elements of each row of a two-dimensional array. What you plan to do is: Divide the first element of the row of a two-dimensional array between the second element of the row, a...
asked by 21.12.2016 / 21:20
1
answer

List linked in C

First I create the list, then I check if it is empty or not, then I pass the values that I want the list to have, but when I print the lists I do not get the values that I passed on to them. How do I print what I'm going through? struct alumno...
asked by 20.11.2016 / 03:27
2
answers

I want to convert Int type to its corresponding ASCII table number

int i=2; int caracterAscii= ¿ ? should return the number 50. How should I do it?     
asked by 17.04.2017 / 17:11