I'm trying to create a list structure using struct .
But when I compile my code, I get an error because, even specifying Lista , it has a problem.
Follow the complete code:
#include <stdio.h>
#include <conio.h>
s...
#include<stdio.h>
#include<math.h>
int main ( void ){
int x;
int i;
printf("Input the number (Table to be calculated) : ");
scanf("%d", x);
for( i = 1; i <= 10; i++){
printf("%d x %d = %d", x, i, x*i);
}
return 0;
}...
I'm doubtful in the following exercise:
Write a C program that receives two strings via standard input and
whether the second string is contained in the first string, that is, if the
second string is a segment of the first. You may con...
Is there any way to make a function use multiple arguments without their declaration? For example:
#import<stdio.h>
#import"rlutil.h" //para as cores
void a(color,string){
setColor(color);
printf("%s",string);
setColor(15);...
I enter a value on the command line. That is in binary vector. But if it is not returned to the printf message. But my problem is that it always goes into if , regardless of whether it is binary or not.
#include <stdio.h>
#i...
I'm using the function below to do the conversion from byte array to string , but when parsing the compiled code I notice that string is shown clearly ( using a hex editor ) , which I do not want.
char arr_code[] = {79, 99,...
When I do some command in the linux console, for example man fprintf ,
a series of information is printed on the screen.
I need to collect this information that is printed on the screen but instead of being printed on the screen it is f...
#include<stdio.h>intmain(void){charcor[35];//declararvetorpararecebernomedascoresintnumeros[35]={0};//declararvetorparareceberonumerorespectivodascoresinti=0;intentrada;for(i=0;i<=35;i++){printf(" DIGITE O NUMERO: ");// atribuir os val...