answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

How can objects be passed as a function parameters in c?

Possible ways:

void byvalue (MyClass param);

void byptr (MyClass *paramptr);

void byref (MyClass &paramref);

MyClass c;

byvalue (c);

byptr (&c);

byref (c);

Who is responsible for creating first generation programming language?

They must be punished thoroughly.

The title 'first programmer' refers to Ada Augusta Lovelace.

What is dynamic constructor?

In Java classes we can declare multiple constructors. The JVM would dynamically decide which constructor to invoke based on the parameters passed from the calling class.

Ex:

public class Test {

public Test(){

...

}

public Test(String arg1){

...

}

public Test(String arg1, int arg2){

...

}

}

In the above class, there are 3 different constructor declarations. Whenever a constructor is invoked from a calling class, the JVM would decide which one to invoke based on the number of arguments passed.

What button searches for data in a single field or in all fields?

The find feature matches the case on a website and document, with what you are looking for. To access find press: CTRL + F.

Boyce-Codd normal form BCNF?

Yes, acronym BCNF stands for 'Boyce-Codd Normal Form'.

Could macro be different software?

Your question has no meaning, but if you wanted to ask whether the preprocessor can be not part of the actual compiler, then the answer is yes, in unix there is a separate program (cpp) that does the preprocessing.

How to find the factorial using stacks?

You don't actually have to use a stack, but if your teacher wants that, you can please them:

int fact (int n)

{

int i, fct;

whatever_stack_type_you_have s;

initialize_your_stack (s);

push (s, n);

for (i=1, fct=1; i<n; ++i) fct *= i;

pop (s, &n);

fct *= n;

destroy_your_stack (s);

return fct;

}

What is a pseudo name?

This may not be true but I'm guessing (seeing as pseudo means false) that it is a false or fake name

How do you reset a Lost password on a belkin router?

You have to call the service number on the back of the router.They will ask you some questions,and then they should be able to reset that for you.

What programming language is the macromedia flash Browser Helper Object programmed in?

I am guessing that the BHO is written in C++. The IE API is a COM-rich ATL API, and few languages are better suited to the job than C++ (although many claim support for this).

Best class on adventurequest?

Assassin definitely. But you need rank 10 ninja and to get ninja youj need rank 10 rogue. So you need guardian. And level 70. But it IS the best. If your not guardian, then I would suggest Dragonslayer. If you like killing dragons and getting a lot of xp and gold. But if you just started and your a weak level, then get mage in warlic's shop.

How much power does a microcomputer have?

The first computer was Babbage's Differential Engine. He never finished it in his own lifetime. Parts of his uncompleted mechanisms are on display in the London Science Museum. In 1991, a perfectly functioning difference engine was constructed from Babbage's original plans. It took from 1989 to 1991 to build.

What are advantages of array over linked lists?

Arrays are more compact than any other data structure, because the structure is pure data and data is organised in contiguous memory addresses. There is no need to maintain links between the elements because any element can be randomly accessed in constant time through an indexed offset from the start address of the array.

Linked lists require one additional word per element in order to maintain a link from one element to the next. Linked lists are uni-directional (forward traversal only) and do not allow constant time random access. However, linked lists can grow dynamically whereas arrays cannot. In order to increase the size of an array, the array must be re-allocated, which may result in the entire array being copied to new memory. In order to minimise the need for reallocation, arrays will typically allocate more memory than is actually required upon a reallocation, typically 1.6 times the current size. The programmer must keep track of the number of used elements and the number of unused elements, and must ensure that all unused elements are always placed at the end of the array. Removing an element from the middle of an array therefore results in all the following elements being shunted to the left to close the gap, or (if the order is not important) moving the last used element into the gap. Linked lists do not have these problems because the internal links between the elements maintain the order. to remove an element, you navigate to the element that comes before that element, then copy the next element's link before deleting the next element. The current element's link is then update with the copy.

What is a formal document issued by the Pope?

An encyclical is a letter from the Pope to the whole Church, usually dealing with matters of faith and the Christian life.

What is the most important component of the computer's electrical system?

While it's hard to define one "most important" part, I'd have to say that the power supply should have that distinction. Without electricity flowing to the computer, the rest of the electrical system has no purpose.

What is the difference between courier mode and cargo mode?

In Courier mode there are certain weight restriction and also clearance of goods is done by courier company through which goods is being dispacthed, whereas in cargo mode the clearance of goods can be done by buyer. I am also not 100% sure of the answer.

What is 16 bit compiler?

Quite simply, a 16-bit compiler is a compiler for a 16-bit machine.

What language introduced the case statement?

The case statement was first introduced by ALGOL-W.

What does it mean to be fluent?

To be fluent in a language means to be able to read and speak it at a level where you can communicate thoroughly with a native speaker.

Why are some bricks not stacked on top of each other?

i am very cool and i love hockey

lora223 says= its because its not as stable if it is stacked directly on top of eachother

How do crows hover?

They really don't hover well, but they do it by changing the angle of attack that their wings move through the air so that they direct thrust downward like a helicopter.