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...
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 &...
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...
#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.
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);...