Questions tagged as 'char'

1
answer

Convert hexadecimal string to output readable in C

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...
asked by 04.09.2016 / 22:00
1
answer

comparison using c characters

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...
asked by 30.09.2015 / 18:42
1
answer

Char count in C

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(){...
asked by 21.05.2015 / 20:38
2
answers

while not running from the beginning

#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...
asked by 13.06.2017 / 05:21
1
answer

Learn ABC in C language?

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++){...
asked by 13.05.2015 / 15:24
1
answer

Vector of char by reference

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...
asked by 01.11.2017 / 18:03
1
answer

C program to concatenate strings does not execute correctly

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'...
asked by 21.05.2017 / 23:59
0
answers

Remove accentuation of a string in C language [closed]

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...
asked by 05.12.2018 / 19:16
1
answer

Saving names

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...
asked by 11.02.2016 / 03:51
2
answers

Maximum size of a character vector

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...
asked by 22.11.2018 / 19:06