answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

When a subroutine is called where is the address of the instruction following the call stored?

That varies between different processors:

  • Many put it on the stack automatically.
  • The PowerPC stores it in a register called the Link register and leaves it up to the software to determine where to save it.
  • The i960 pushes its internal general register stack automatically then stores it in one of the newly allocated general registers (along with a new frame pointer, etc.).
  • Some early computers (e.g. DEC PDP-1) stored it in the memory address preceding the subroutine itself.
  • Many computers in the 1960s (e.g. IBM System 360) stored it in one of the general purpose register specified in the call instruction.
  • etc.

What language is the source for kvetch?

Kvetch is a Yiddish word. Most use it when referencing a person who complains and whines more then normal. It can also be used as a comical complaint.

How do you get the music you've purchased from itunes back into your computer if you get a new computer?

You can log into your itunes account, and view your purchase history. Next to your purchases there should be a report a problem link. If you click that link and choose the correct problem you will be prompted to type in your reasoning. Once you explain yourself apple will re-enable you to download the music.

iTunes and iPod do not support that functionality. There are however ways of doing it.

Be sure to check the iLonge article:

Write a 'c' program to accept 'n' numbers from user store these number into an array count the numbers of occurrence of each numbers?

#include<stdio.h>

#include<conio.h>

void main()

{

int a[10],i,j,k;

int count=1,num[10],pos=0;

clrscr();

printf("Enter the Array Element ");

for(i=0;i<10;i++)

{

scanf("%d",&a[i]) ;

}//close the for loop

for(i=0;i<10;i++)

{

count=1,pos++;

for(j=0;j<10;j++)

{

if(a[i]==a[j])

{

for(k=j;k<10;j++)

a[k]=a[k+1]

}//close the if

count++;

}//close the for loop

num[pos] = count;

}//close the for loop

for(i=0;i<pos;i++)

printf("Repeted Number of IN Arrary %d",num[i]);

}//close the main

How do you write number 1 in base 10?

The base makes no difference. The symbol 1, by itself or with leading zeroes, is always regarded as being the number one. Note that 1 is not a number. One (the word) is a number while 1 is merely the symbolic representation for the number we call one. But 01 is also one, as is 000000001. The leading zeroes are simply ignored.

What is an event counter?

An event counter is a variable that starts off set to zero and is incremented at a certain point in code which is passed when something (the event) is occurring. For example, if you want an event counter to determine how many times the user responds to the question "what was the student's grade" with the answer "100", then within the existing loop to handle data entry, you could simply add something along the lines of (if grade equals to 100 then event_counter = event_counter + 1) and there you have an event counter.

How does TCP implement reliability?

The main task of the Transmission Control Protocol is simple: packaging and sending data. Of course, almost every protocol packages and sends data. What distinguishes TCP from these protocols is the sliding window mechanism that controls the flow of data between devices. This system not only manages the basic data transfer process, it is also used to ensure that data is sent reliably, and also to manage the flow of data between devices to ensure that data is transferred efficiently without either device sending data faster than the other can receive it.

A book about inter process communication?

why do signal system call do not work properly on RHEL 5.0. any reasons hardware or software specific?

What is the work of compiler?

A compiler converts a program in one programming language into a program in another programming language. Often the conversion is into a language that can be understood directly by the hardware.

Mixcraft 4.2 registration code?

iv been looking for a long time and i still havent found any codes.

Program that takes a single integer argument n from the command line and creates a binary tree of processes of depth n?

#include

#include

#include

#include


int main(int argc, char *argv[])

{

int process = 1;

int child[2];

int numChilds = 0;

int state;

int depth;

assert(argc 0)

{

numChilds = 0 ;

procId *= 2 ;

if (! --depth)

exit(0);

}

else

{

numChilds++ ;

process++ ;

}

}

while (numChilds) wait(&state);

}

What is serial execution?

Serial execution is when tasks are completed consecutively (one after the other), as opposed to concurrently (at the same time, in parallel).

Is it true that a derived class inherits all the members of its base class?

False. A derived class inherits the public and protected members of its base class. Private members of the base class cannot be inherited.

When prim algorithm fail?

When there are directed edges in the graph, as it is impossible to move back from B to A when the edges are directed.