I'm having a non-boot error, and I can not figure out why:
#include <stdio.h>
int main(){
const int LENGTH = 10;
const int WIDTH = 5;
const char NEWLINE = "\n";
int area;
area = LENGHT * WIDTH;
printf("Value of area : %d", ar...
I would like to create a function that receives a .txt file and does something with it, but I do not know how to set the send and receive parameters, or if I should do parameter passing by reference.
Send file to function: funcaoRec...
I'm trying to invert a string through a function but it is giving error, but I do not know where it is wrong.
Just below is my code.
#include<stdio.h>
#include<stdlib.h>
#include <string.h>
char troca(char nome[100], c...
I am having difficulty outputting the number of elements repeated in the vector. Here is the code:
#include <stdio.h>
#include<stdlib.h>
int main()
{
int N, i, temp, repetidos = 1;
int *v1;
printf ("Entre com N: ");...
I need to create a sparse array of type dynamic cross-list and my cells are of type:
typedef struct CELULA{
int linha;
int coluna;
double valor;
}CELULA;
However, every time I create a new cell in a function, I do not know how...
The question is this:
Construct a function that takes two integer values a and b , return (passing by reference) the quotient, div, and the remainder division, mod, from a to b . The function should return -1...
void primeiro(int a) {
a *= 2;
printf("%d", a);
}
void segundo(int *u) {
int x = 1;
x = x + *u;
primeiro(x);
*u = x++;
}
int main() {
int x = 5;
segundo(&x);
printf(":%d\n", x);
}
I want to enter the item name only that he does not leave, I've done the same way the scanf same as the vendor name but do not let introduce equal
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno....