Most voted "c" questions
C is a general-purpose computer programming language used for operating systems, games, and other high-performance jobs and is clearly distinct from C++. It was developed in 1972 by Dennis Ritchie for use with the UNIX operating system.
Learn more…4,811 questions
Sort by count of
-
-5
votes2
answers1330
viewsHow to show the number that most appears in a vector in the C language?
Given a sequence of N numbers between 0 and 100. Determine the highest frequency value. Follow what I’ve done so far: #include <stdio.h> #define max 100 int main() { int…
-
-5
votes2
answers54
viewsHow do I if the user type a number other than 1 and 2 he asks you to terminate the program? n[1] for yes and [2] for no?
#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main()…
casked 6 years, 5 months ago Ermeson Oliveira 1 -
-5
votes1
answer241
viewsWhat is the most efficient way to make string literals not appear in compiled code?
What is the most efficient way to make literals of string do not appear in compiled code? I want to prevent reverse engineering. To do this, I tried the following code. However, I am concerned about…
-
-5
votes1
answer111
viewsSum with vector and pointer in C
Goal: Sum 7 numbers typed by the user that will be stored in an array, the sum must be done with a pointer. Problem: The pointer generates an wrong result, if I take the asterisk from the pointer…
-
-6
votes1
answer104
viewsGeneral problems in C
#include <stdio.h> #include <string.h> #define Nome "nome" #define TAM_STRING 12 void main(void) { char * str; str = (char*) malloc(TAM_STRING); if(str == NULL) { printf("Não já espaço…
-
-6
votes4
answers5886
viewsLanguage exercise C
Create a program that reads six integer values from the keyboard and then show on the screen the read values in reverse order. In reverse order, it would not be from the smallest to the smallest.…
-
-6
votes1
answer103
viewsProcesses - Doubt
To better understand the workings of the processes, Fork, I wrote this test program: #include <unistd.h> #include <stdio.h> int main(){ int value = 9 ; int pid = fork(); if(pid==0)…
-
-6
votes1
answer147
viewsEvaluate tic-tac-toe code
I’ve been programming for a while and I’d like you to evaluate my code in C. It’s an old-fashioned game using a circular data structure. My code is here: #include <stdio.h> #include…
casked 6 years, 8 months ago José Oliveira 7 -
-7
votes3
answers12254
viewsHow to initialize an array using pointers?
I need to initialize a 0 matrix using pointer to address its elements
-
-7
votes1
answer141
viewsProblem with URI issue 2144
Enunciation: https://www.urionlinejudge.com.br/judge/pt/problems/view/2144 The code I have: { double direito,esquerdo,repeticao,e,d,m,c=0; while(1) { scanf("%lf %lf…
casked 7 years, 1 month ago diogo.alves 203 -
-8
votes1
answer249
viewsI cannot prepare the calculation to solve the problem proposed by the enunciation
I need to develop a program in C language, but I am beginner. :( Follows the statement: That is the context of the programme: A smart cat walked into a messy room that needed cleaning. Instead of…
casked 7 years, 1 month ago Danilo Antônio 59