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...
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...
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...
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...
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 ?
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...
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...
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...
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 {...