Questions tagged as 'c'

2
answers

How to use the parameters in the command line [duplicate]

I'm in doubt as to the use of the parameters in the command line, type, one of the functionalities of the university work is to treat some arguments by command line, for example: ./ program -e -i file.txt fileDestino.txt I do not know ho...
asked by 25.06.2017 / 20:54
1
answer

Why is the multiplication of the percentage giving negative results?

#include <math.h> #include <stdio.h> #include <stdlib.h> main() { float altura,peso,soma_altura=0,cont1=0; int idade, cont=0,i; for(i = 0; i < 25; i++) { printf("Insira sua idade:\t"); sc...
asked by 19.04.2018 / 21:11
2
answers

Exercise in C returns wrong value

I'm trying to do an exercise in C that does not generate any syntax errors, I've already looked and I can not find the error, it simply reads or returns the wrong values. #include <stdio.h> #include <string.h> #include &...
asked by 09.09.2017 / 19:30
1
answer

Problem with parameter passing / return of function arrays in C

I'm having a problem with a job I have to do in C which consists of, get the inverse array through the attached array. So far this is what I could produce in C # and then I tried to rewrite it in C, but I'm not getting success because I do no...
asked by 06.06.2018 / 03:37
1
answer

Scanf within printf

#include <stdio.h> #include <stdlib.h> int main() { int i; printf("digite um número %d",scanf("%d",&i)); } The following program only gives result 1 and I do not understand why.     
asked by 14.11.2017 / 18:50
1
answer

What is the complexity of each of these functions?

Simple circular list implemented in C #include <stdio.h> #include <conio.h> #include <stdlib.h> typedef struct s_no{ float info; struct s_no* proximo; } no_t; no_t* cria (){ return NULL; } no_t* insere (no_t* l...
asked by 09.04.2016 / 15:52
3
answers

How to declare variables in for for in c? [closed]

It's the error, when I try to declare a variable in a loop as for, while. Before I could, does it have to do with the language version?     
asked by 01.03.2016 / 20:46
2
answers

Language that Autodesk software uses [closed]

I'm wondering in what language the Softwares of Autodesk are written and the name of the GUI used. If you can help me with this information.     
asked by 02.09.2015 / 23:12
1
answer

Compiler reports code error

I'm new to C language. #include <stdio.h> #include <stdlib.h> int main() { char card_name[3]; int count = 0; while(card_name[0] != 'X') { puts("Enter the card_name: "); scanf("%2s", card_name);...
asked by 06.11.2014 / 23:52
1
answer

How do I get the least significant bit of a character and hide it in an image file? [closed]

The program that checks if a particular LSB has changed, how to proceed?     
asked by 06.06.2017 / 15:55