Questions tagged as 'c'

3
answers

How can I execute several functions at the same time?

I need to execute all previously listed operations at once, that is, addition, subtraction, multiplication, division and factorial of the first number with just choosing the option; that is, without leaving the switch . How can I do it?...
asked by 27.03.2017 / 22:26
1
answer

Use rand in c to generate a sequence of random numbers that go from 3 to 3?

Is there a simple way in which using rand (without using other functions) can generate random numbers between 45 and 75 (inclusive) and that these are 45,48,51,54,57,60,63,66,69,72,75 (that is, go from 3 to 3)? I know how to perform th...
asked by 26.01.2018 / 14:09
3
answers

Can you help me find the error? repetitive cycle for C ++

I have to print the average of the approved grades and the average of the approved grades but I get it wrong. Does anyone have any suggestions? #include<stdio.h> #include<stdlib.h> #include<conio.h> int main () { int...
asked by 30.06.2017 / 00:00
3
answers

Save string of characters in C

How could I read a character string and store it in a variable? The variable must not have a fixed size. It's costing me a little. Thanks! I'm sorry I have hardly any code, everything I try is wrong. I'm trying to do it with a malloc but ther...
asked by 03.11.2016 / 19:46
5
answers

Function #define

In a code that uses #define RULE 90, before the function main() , Is there any way that the value of the variable, in this example the 90, is requested when the program is executed, instead of having to enter it in the code, every t...
asked by 17.04.2018 / 10:06
2
answers

Error C, implicit declaration function

I have the following slogan: Design a program that allows generating a text file that allows to load five names separated by period. Show the contents of the file one name below the other. #include<stdio.h> int main(){ int total; char no...
asked by 13.07.2017 / 16:27
1
answer

Enter file data in two-dimensional array

Hello, my problem is this: I have a text file in which a maze is drawn and I have to load it into a two-dimensional array (matrix) to work with it, I tried to use fgets but it does not work as I should and have thought that the best option is to...
asked by 05.05.2017 / 19:14
2
answers

Warning pointers c

I have a problem in the following code and I need help to fix it. Thanks in advance float *calculaFn(int n ,Algoritmo a, Caso c){ float fn[2]; if(a==INSERCION){ if(c==ORDEN_ASC){ // f(n)'s algoritmo insercion orden ascendent...
asked by 24.10.2018 / 12:56
1
answer

What is stdcall and what is it used for?

I have been looking for information on the official microsoft website and I understand that it is used for function calls and to clean the stack of the stack if I am not mistaken but what is the benefit of this?     
asked by 03.09.2018 / 17:55
2
answers

How to call a function in time of execution in c [closed]

For example with this pseudocode function suma(a,b) { return a+b } function callfun(namefunction,arg1,arg2) { namefunction(arg1,arg2) } I also need to know how to make a console and     from the console I wri...
asked by 08.12.2016 / 18:45