I'm new to programming and I'm having a problem, I made a code that reads three integers.
#include <stdio.h>
#include <stdlib.h>
int main () {
int i,v[3];
for (i = 0; i < 3; i++)
{
printf("Numero:");
scanf("%d",&...
I created a function to remove a specific element from a list. However, the code only works right when it comes to the first element. The logic is that when the element arrives in which it concerns it takes the previous / next and clears the spe...
Hello, I'm having trouble converting network byte order to host byte order with ntohs() ". I do not understand why the conversion is giving problems, because the function I am using to convert host byte order to network byte order...
Is there a method for me to put Subscribed numbers?
Example:
printf("A) A SOMA EQUIVALE À 11001011010 ²\n");
Instead of displaying an Overrides number, I wanted it below (Subscripts), to show it as a binary basis and not a potentiation....
My question is: I know that the Python language interpreter is made in C. In Python numeric variables do not have size restriction, that is, the more we add value to the variable, the more the variable increases the amount of bytes so that it is...
I would like to know how to pre-define the size of an array inside a struct of the form:
struct exemplo{
int l;
int c;
int matriz[l][c];
};
The compiler complains that l and c in the array row is not declared here.
I'm in doubt as to how my LETRAS list points to CONTATO . Every time I type a new name I need to save the initial of the name and point it to the names that contain the initial one, but I'm having trouble implementing it.
#include...
I did a search but I did not quite understand what this means and what it says about my code.
I have this function cria_palavra that returns a pointer, there in main , when I will receive that return in another function insere_fi...
I have a problem with the output of the Fibonacci sequence and I can not identify where the error is. Here's the code:
#include <stdio.h>
#include <stdlib.h>
int main(){
int i, Fib[100], n;
scanf("%d",&n);
printf("0 ");
fo...
I have a nano Arduino and need to move two components via bluetooth: a servo motor and a brushless motor.
In the Android app, step two variables: one for port 4 and one for port 5.
On port 4 is Servo motor and on port 5 is the brushless motor...