c

c

Read a string with scanf()

Question: My program should read big numbers( 0<=X<=10^(100) ), what I'm doing is it reads/interprets the numbers typed as char and stores it in a linked list. My program was fine, until I put a scanf("%d") (whose function is to read a number, natural, of cases) above the scanf that …

Read a string with scanf() Read More »

Return de Struct em C

Question: Hi, I'm trying to return a struct from a function when it's called in main. I did the whole function and define at the end two elements that are calculated in the function: int mult[100]; char** elemfim = (char**)malloc(100 * sizeof(char*)); I want to put these two in a …

Return de Struct em C Read More »

Scroll to Top