Questions tagged as 'c'

1
answer

How to inactivate an element in C? [closed]

From the following structs , I would like to know how to inactivate a property.    A real estate agent has a set of 100 properties for rent. The application must allow: "Inactivate a property ..." / / p. In the case of a property, the p...
asked by 07.06.2018 / 19:04
1
answer

Calculator in C (Beginner) [duplicate]

I have a question in the following exercise:    Create a program that receives two integers and shows the   result of the division of numbers and their remainder. the program should   whether the user wishes to repeat the operation or close...
asked by 04.06.2018 / 15:58
1
answer

Use the time.h library for dates

I wanted to use the time.h library to store a birth date type 26/10/2312 (in this format) in a given array, but I've never worked with this library. Can someone give me an explanation?     
asked by 09.01.2018 / 15:35
2
answers

I am creating a game of the three tracks but I can not go to the next question

Hail Hail, all jewelry with you? I hope so, I have this code in C it is ok, but I am trying to implement more questions and I can not. Follow the code: #include<stdio.h> #include<stdlib.h> #include<time.h> main() {...
asked by 15.01.2018 / 22:14
3
answers

Count how many times each character appears in a string (without using a function)

I have the doubt in a question of string exercises that I am doing. The question is this below:    Write a program that reads a string and prints how many times each   character       appears in this string       1st string: TTAAC      ...
asked by 26.03.2018 / 06:02
1
answer

Major sorting algorithms? [closed]

What are the major sorting algorithms? If possible with examples in the C language. I do not know when to use one or the other.     
asked by 14.03.2016 / 22:28
2
answers

How to find a value that is in the vector but in the wrong position?

I need to know when to find the correct number (color) in the correct position of computaTentativas to be tested if it does not hit every sequence (has 10 tries) but hit A number in a correct position must return in the positions of the l...
asked by 26.06.2017 / 16:39
1
answer

What is a function specifically for C? [duplicate]

What is a C function useful for?     
asked by 02.06.2018 / 01:00
2
answers

When I execute the commands in the Switch Case, does it quit instead of returning to the Menu?

int main(){ int tensao, corrente, resistencia, potencia, tempo, cargaeletrica, trabalho, i; printf("\nPara calculo de Tensao(resistencia*corrente) digite 1\n\nPara calculo de Potencia(tensao*corrente) digite 2\n\nPara calculo de Corrente...
asked by 22.08.2018 / 16:12
2
answers

How to isolate higher order bits and lower order bits in C / C ++?

I need to create two functions One receives an integer value and returns another containing only the 8 lowest-order bits of the original value, with the other bits set to zero. The other receives an integer value and returns another cont...
asked by 11.01.2018 / 15:47