tipagem

How do value types and reference types work in Javascript?

I know that in C # there are value types and reference types and one of the differences between them is in memory management. ... that some variables are stored directly in the stack and others are stored in the heap only having a reference in the stack?

What is the difference between varchar and nvarchar?

What is the difference between using the data types varchar and nvarchar? nvarchar exists in every SQL database? is ther ... is there a criterion for using them? And I saw that there is also the same with char and nchar. Does the same apply to them?

How to represent money in JavaScript?

How best to represent monetary units (i.e. money) in JavaScript? I know it's not good to use floating point, given the roundi ... correctly and/or consistently fail? presentation - is it simple to format this type of data to be presented to the user?

Memory allocation in C# - Value Types and reference types

In C# there is a difference between how memory is allocated by the CLR for reference types (classes) and value types (structu ... does this distinction exist? After all, classes and structures, despite having differences, are quite similar to each other.

What is the difference between a static and dynamic programming language?

Some time ago, Facebook launched its own programming language, based on PHP. See: Technoblog: Facebook announces Hack, its ow ... isadvantages It can be said that are script languages always dynamic and vice versa? (See: what is a scripting language?)

What difference between Boolean and boolean?

I performed some tests using Boolean and boolean and apparently returned the same result. See below: Boolean bool = true; ... ng it. Is there any difference between Boolean and boolean? What can influence my application at the time of its declaration?

C programming logic doubt

I am learning to program in C using André Backes ' book C - complete and uncomplicated language. There's an exercise I can't ... n1; if (resultado <= 1.2){ printf("emprestimo concedido"); }else{ printf("emprestimo nao concedido"); } return 0;

C # challenge variable value exchange

I recently made a very simple challenge: Change the value of two variables without using a third variable. int a = 5; ... ack', 'Overflow']; b = a[0]; // b = 'Stack'; a = a[1]; // a = 'Overflow'; How could I solve this challenge with string?

What does a type variable of an abstract class mean?

Studying design pattern I saw one thing I didn't quite understand what it means, when we have a variable of the type of an ... ). The getFabrica() method of ReprodutorFabrica returns a creator of an object type, in this case returns the color creator.

How to declare a date variable in C?

I need to create an abstract data type that represents a person, containing name, date of birth and CPF, and create a variabl ... itable to put in place of the "?". struct pessoa { char nome; double cpf; ? Data_Nasc; }x,*ptr; ptr = &x;

Data type for latitude and longitude

I am working on a new project where I will need to save the coordinates (latitude and longitude) of an address in the databas ... for this? I have researched and seen some recommendations to use decimal, but I am in doubt if it is the best type to use.

What does a double precision variable mean?

I would like to understand the meaning of a double precision variable.

What is typing style?

On Wikipedia, on the page about C # says about the" typing style " of the language: Static and dynamic, strong, safe and insecure, nominative, partially inferred What is typing style? What do the above terms mean?

"A data type is an abstract concept defined by a set of logical properties."- What does that mean?

I am reading the Book " Data Structures Using C", and one of the things that the book explains is that a set of bits has no i ... nd the legal operations involving that type are specified, we may implement that data type (or a close approximation to it)".

Converting an nvarchar data type to a datetime data type resulted in a value out of range

Line of code INSERT [dbo].[Shop_Goods] ([TemplateID], [Name], [Remark], [CategoryID], [Description], [Attack], [Defence], [ ... from the break. Wanted to know why the error, I'm running a query of almost 10 thousand lines and several gave this error.

Why wear short?

Type short corresponds to a 16 - bit integer-it is literally syntactic sugar for Type Int16. Current processors are all 64-b ... teenth in the result (assuming there is no overflow treatment). So, in what situations should I use the type short, and why?

What is the difference between enum, struct, and union data types in C?

I'm reading the GNU C manual and I'm in the data types section and I notice a certain similarity between the types enum, struct, and union. Is the syntax the same, or is there something that differs between them? In which cases should I use which?

Printing predefined sentences, randomly in C

Hello, I'm a beginner in programming and I'm learning to program in C. I want to make a program that has some sentences al ... ntire code, it is enough just to explain to me what is the best solution for the implementation of the part of the sentences.

Meaning of (void *)

What is the meaning of calling a function with one that was int and is passed as (void *)? If the variable has been declared as int because it is passed as a parameter to a function*(void *)variavel* ? Example int var = 10; teste((void *)var);

Byte-type cast in integer

I have the following code: public class Principal { public static void main(String[] args){ int i = 10; b ... ed in b = 20 . But why? I would like to understand what happens when I put cast(byte) in int. Question 127 page 4 contest