Questions tagged as 'tipagem'

2
answers

Object type for data of type Time (Ex: 1 min and 56 seconds) in Android / Java?

I need to work with times, such as a timer (not my case), which at the end of its execution would have to save its value. So I thought of some possibilities like: java.utils.Date : only the data in the case is not a Data; In l...
asked by 13.11.2014 / 13:57
1
answer

What is a type reference?

I was reading about the keyword ref e I came across a warning that said not to confuse passing by reference with type reference . No doubt this warning left me confused and raised more doubts about the subject, as I could not see the...
asked by 29.07.2018 / 02:03
3
answers

Is it correct to prefix variable names with their type?

Is it customary / correct to use variables where the first letter refers to your typing? Eg: string sVariavel; int iVariavel; , etc ... EDIT: The name said is Hungarian notation . Is this a good practice? What is the good...
asked by 07.07.2016 / 15:37
2
answers

Big integer does not work

My code looks like this: #include <stdio.h> int main() { unsigned long int L, N; scanf("%lu%lu", &L, &N); printf("%lu\n", (L-(N-1))*(L-(N-1)) + (N-1)); return 0; } When the test case has low numbers, the pro...
asked by 11.02.2016 / 22:50
2
answers

Can an int be equal to null?

After seeing a question about this, and many college colleagues with doubts attached to it, I decided to ask this question. Type int can be equal to null ?
asked by 24.05.2015 / 05:34
2
answers

How to assemble a list of generic objects in C?

In many high-level languages it is possible to have a structure or a collection of data of varying types, often using type Object for this. How to do the same in C? That is, I do not know the types that will enter the structure or arr...
asked by 30.01.2017 / 11:47
1
answer

Do all data persist as string is a problem?

Is there a problem in storing all the information in an application as a string in the database? Regardless of the application, the SGDB, the programming language used, etc. I ask more about data handling issues, in most languages I use man...
asked by 26.12.2014 / 23:14
1
answer

What is the best type to store area, volume, perimeter? [duplicate]

Decimal , Numeric or Float . What is the best option to store area or volume? I would use Decimal, but I would like to see the views of others as well. It does not seem like it, but the right kind or the closest of that make...
asked by 21.11.2017 / 17:56
2
answers

What is the purpose of the size_t and ssize_t commands in C?

What is the purpose of the size_t and ssize_t commands? What kind of data do they represent? size_t minhavariavel1; ssize_t minhavariavel2;     
asked by 16.12.2015 / 01:21
2
answers

Error declaration null - Unknown type name 'bool'

The error you are giving is in this function. bool tem_numero_na_lista(tipo_lista * aux, int valor) { while (aux - > prox != NULL) { if (aux - > info == valor) { return true; } aux = aux - > prox; else {...
asked by 18.04.2017 / 16:31