All Questions

2
answers

What is the purpose of the void function parameter in C language?

Is the void parameter only semantic or does it do anything I do not know? int main() { return 0; } int main(void) { return 0; }     
asked on 04.07.2016 / 03:24
1
answer

How can the search of an element in a set be O (1)?

According to the official Python page for the complexity of algorithms over time, the sequences list and set have the following characteristics: List Set Highlight for the in operator, which checks for...
asked on 11.06.2018 / 14:23
3
answers

Is there a more efficient way to dynamically create an array from another array by filtering the contents of the array first?

I have an array of values that can include several numpy.nan: import numpy as np a = np.array ( [1, 2, np.nan, 4] ) And I want to iterate over your items to create a new array without np.nan. The way I know to create arrays dynamically...
asked on 15.12.2013 / 17:48
1
answer

Why is using String in a switch block more efficient than in an if-else block?

According to Java documentation : / p>    The Java compiler generally generates more efficient bytecode from switch statements that use String objects than from chained if-then-else statements.     
asked on 26.08.2015 / 16:37
3
answers

When is the recommended use of composite primary key?

   A simple key is associated with a single value, or field, of the record. A compound key corresponds to the combination of two or more keys, and may be necessary to eliminate ambiguity, forming a unique identifier. ( Wikipedia ) Let's...
asked on 15.05.2014 / 14:21
2
answers

PDO Drivers for SQL Server

I'm trying to run a PHP application (version 5.5.8) with the connection to the SQL Server database with PDO, but it returns the following error:    could not find driver I have tried to enable features in php.ini but to no avail! Remem...
asked on 23.01.2015 / 18:15
2
answers

How to Lambda in Extension Methods with multiple Lists?

There are the following Objects: public class Objeto1 { public List<Objeto2> PropObj1 {get; set;} } public class Objeto2 { public List<Objeto3> PropObj2 {get; set;} } public class Objeto3 { public int PropObj3 {get; set;...
asked on 10.08.2015 / 22:55
2
answers

What are Web Components?

What are web components and how to use this technology? I would like to understand a little more about this technology and see an example with its use.     
asked on 20.10.2016 / 17:02
1
answer

Instruction to add value in AX

What command / syntax to use to put value 55d in the AX register?     
asked on 23.04.2015 / 05:21
1
answer

What is the difference between Action, Predicate and Func

What's the difference between Action , Predicate and Func in C #? I would like examples of use if possible.     
asked on 01.10.2015 / 15:22