I would like to save a text in hexadecimal, and calling a function, the hexadecimal string is converted to a readable char string ie decoding hexadecimal, such as 0x6f0x69 to oi .
I've tried the following:
#include <stdlib.h...
Ok, the problem is only in function q31 and q311.
link
I left the complete code in the link above.
so here's this q311 function:
void q311(){
char forma;
int n,jota,b,i,j;
printf("Informe a figura e o tamanho: ");
scanf("%c",&fo...
I have a function in C that should receive a string, and pointers that have the number of numbers and vowels that are present in the string, but the function is not adding up each time it finds a number or a vowel. Here is my code:
int main(){...
#include <stdio.h>
#include <stdlib.h>
main(){
int parar=1; // Condição para parar.
int a=0, b=0, c=0; //Elevadores
int count=0; //Numero de pessoas
char elevador=""; //Elevador
do{
printf("Elevador: ");
scanf("%c", &e...
How do I in this code, when it enters a letter read by the keyboard with the scanf of type (char) it repeats until the Z?
#include <stdio.h>
#include <stdlib.h>
int main()
{
char c;
/*for (c= 'A'; c<='Z'; c++){...
I'm trying to pass a array from char to a procedure that will resize (with malloc() ), write its contents and return to main() .
I know that every vector is a pointer and is already passed by reference, but something in...
include
int main(){
void concatenarStrings(char string1[], int t1,
char string2[], int t2,
char string3[]);
char palavra1[]={'p','a','o','c','o','m'};
char palavra2[]={'m','o'...
I'm having a college work on Threads and competition control (OpenMP) in C, which is giving me a bit of a headache.
The work consists of taking text from any file and separating it from% cos_de% producers and consumers, where consumers...
I want to allocate a string inside any structure so I can fetch these strings afterwards. I need to enter a condition to end the insertion of names. I'm thinking of a structure that is running until the end of the reading, I think it would be a...
Is there any maximum quantity, that a variable of type char supports character?
For example, could I use char texto[1000]; ?
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
int main(){
setloca...