Questions tagged as 'tipagem'

5
answers

How to declare a date variable in C?

I need to create an abstract type of data that represents a person, including name, date of birth and CPF, and create a variable that is a pointer to this TAD (in the main program). To a certain extent I know, but I do not know which is the r...
asked by 04.05.2016 / 18:48
2
answers

int and Integer - Java

I am developing a project in Java and it is in error, I have already found it but I do not understand it. public class Time{ private String nome; private ArrayList<Jogador> jogadores; private Integer gols; public void a...
asked by 08.05.2015 / 01:16
5
answers

Is it possible to change the type of the variable in Java?

Is it possible to change the type of my variable in Java? For example, I created a variable x , being a Double : double x; I want to continue using my variable x but it is now a int : int x; Is this possible?...
asked by 19.02.2015 / 22:02
3
answers

C ++ - What's the difference between using fixed types of C ++ and typedef of a type?

A few days ago studying emulation I came across a stack overflow question in English on the emulation of CHIP8, and one of the responses told me not to use C arrays such as int i[12] instead of using std::array to be a fixed type,...
asked by 12.11.2018 / 12:03
4
answers

Difference between null, empty, 0 and false

The goal Differentiate day-to-day usage of null , empty , 0 and false . The problem Coping with these 4 representations of variables is complicated and I do not know how to differentiate them, even more so with...
asked by 29.01.2014 / 13:53
4
answers

Return typing in PHP 7. What are the advantages?

I was giving a test in PHP 7 and checked that it now accepts to define which type of data is going to be returned. Here are some tests: Defining the instance to be returned function test_object(): stdClass { return new ArrayObject;...
asked by 21.10.2015 / 17:33
2
answers

Differences and use of Strings vs. CharSequence

Many methods in Java expect parameters CharSequence , but the code runs normally when I pass String without conversion, for example: String mensagem = intent.getStringExtra(MainActivity.MENSAGEM); TextView t = (TextView)findViewB...
asked by 17.01.2014 / 12:43
2
answers

PHP 7 has typing arguments and return, but is optional. this is good or bad?

I would not like to raise a controversial issue here about the PHP 7 language, which was recently released, but only to understand some points about typing. Come on: In versions prior to PHP 7, the functions do not have return typing. We h...
asked by 11.01.2016 / 14:19
2
answers

Data type for latitude and longitude

I'm working on a new project where I need to save the latitude and longitude coordinates of an address in the database. Is there an ideal data type for this? I searched and saw some recommendations for using decimal, but I'm in doubt if it...
asked by 10.10.2016 / 15:31
2
answers

What does the exclamation point after the name of a type mean?

I've seen a lot in Kotlin types marked with an exclamation mark at the end. Especially when using Java APIs. Something like CharSequence! What does this mean?     
asked by 27.07.2018 / 02:17