top pointer of a stack is the pointer that refers to the top most element of the stack.
It doesn't matter what is the speed is on the USB it depends on the computer's speed on its hardrive, internet, or both the speed is not based on the 2.0 USB, is the computer either its old or new or in between.
What is a PID and how is it useful when troubleshooting a system?
PID stands for Process Identifier, a uniquely assigned integer that identifies a process in the operating system. In any system, applications use PID to identify the process uniquely. Also, it is used in diagnosing the problems with the process in Multi-Tasking systems.
What is the disadvantage of change high level language to machine language?
The biggest disadvantage of machine level language is that it is extremely hard for humans to work with. Everything is in binary code, which is nothing more than a series of ones and zeroes. Programming anything in machine level language takes a very long time.
malloc allocate a memory section whereas memset manipulate the content of the memory section, (for example fill a memory section pointed by pointer ptr with 0, we use memset(ptr,0,sizeof(ptr_data_type)) A memory section must be allocated(using either 'malloc' or 'new' in C++) before memset can be used on it.
When did Bill Gates make Microsoft?
Bill Gates made Microsoft in 1970 after getting out of Harvard University. He made it with Paul Allen. There is a team who made it with him. Those people are : Steve Wood , Bob Wallace, Jim Lane, Bob O'Rear, Bob Greenberg, Marc McDonald, Gordon Letwin, Andrea Lewis, Marla Wood. Bill Gates and Paul Allen is one of them.
Write a c program to generate all prime numbers in the given range?
look man that would take alot >>>
Ill give you the way
===============================================================================
this answer i write it now on net !
i read about that befor in it uni where i study
i will chick out the answer and re write it
best wishes
2024
How do you write a c function to swap two variables without using a temporary variable?
You can swap values a and b without a temporary as follows:
a=a^b
b=a^b
a=a^b
(^ is the bitwise XOR operator)
To show how this works, let's consider the values a=180 and b=204. In binary, 180 is 10110100 while 204 is 11001100. Thus:
a = 10110100
b = 11001100
a^b means that we look at the corresponding bits in each input value and output a 1 if one and only one of the two input bits is set. Thus the output (o) is:
a = 10110100
b = 11001100
o = 01111000
In the expression a=a^b, the output of a^b is assigned to a, thus the values of a and b now look like this:
a = 01111000
b = 11001100
We then repeat the operation, a^b, this time assigning the output to b:
a = 01111000
b = 11001100
o = 10110100
So now we have:
a = 01111000
b = 10110100
We repeat the operation one more time, assigning the output value to a:
a = 01111000
b = 10110100
0 = 11001100
So now we have:
a = 11001100
b = 10110100
The two values have now been swapped.
To write this in C, we can use shorthand expressions using the compound XOR-ASSIGN operator (^=):
a^=b
b^=a
a^=b
These individual expressions can then be combined into a single expression:
a^=b^=a^=b
Finally, to use this expression in a C function, we need to pass a and b by reference (using pointer variables):
void swap (int* a, int* b) {
(*a)^=(*b)^=(*a)^=(*b);
}
Note that a and b must be of an integral type (char, short, long, int, unsigned, etc). The example above only works on type int. If we wish to swap other types, or more complex types, we must treat those values as if they were an integral type. One way to achieve this is to treat those types as if they were an array of type char, supplying the length of the arrays through a separate argument:
void swap (char* a, char* b, size_t size) {
for (int i=0; i<size; ++i) {
a[i]^=b[i]^=a[i]^=b[i];
}
}
For example, to swap two doubles, we can use the following call:
int main (void) {
double a, b;
a = 3.14;
b = 1.1;
swap ((char*) &a, (char*) &b, sizeof (double));
assert (a==1.1);
assert (b==3.14);
return 0;
}
Note that a and b must of the same type.
What are the five high level programming language?
1.First Generation Programming Language
First generation of programming language refers to machine language. Machine language is lower level language which uses object code (some times also known as machine code). Object code is the combination of binary digits. These languages directly talk to hardware.
2.Second Generation Programming Language
Second generation of languages is also low level language which is known as assembly language. Assembly languages are the interface between Machine level languages and High level languages.
3.Third Generation Programming Language
Third Generation programming languages are High level Programming languages like JAVA & C.
4.Fourth Generation Programming Language
This is the set of current generation programming languages. These languages are similar or closer to human languages.
General characteristics of 4GL are:
i.Closer to human languages
ii.Portable
iii.Database supportive
iv.simple and requires less effort than 3GL
v.Non procedural
Different types of 4 GL are:
a. Query Generator
b. Report generator
c. Form Generator
d. Application Generator
e. GUI Generator
f. Relational Database Manager
5.Fifth Generation Programming Language
Languages used for writing programs for Artificial Intelligence, Neural Network, Plasma Computing etc. come under 5GL. This is the future of programming language.
What is structured assemly language programming and C programming?
A way of writing computer programs that are human readable (and understandable to programmers).
How do you find if processor is 64 bit or 32 bit?
A 32-bit system has a maximum 2^32 unique memory addresses, which is 4,294,967,296 addresses in total. Each address refers to a byte (the smallest unit of storage), thus this allows a maximum address space of 4 gigabytes. Each additional bit doubles the number of available addresses, thus a 64-bit system supports a maximum of 18,446,744,073,709,551,616 bytes, which is more memory than exists on the planet. Note that the length of a byte is system-defined.
What are advantages of using infrared mouse?
The mouse uses infrared light to pick up signals of movement from the mouse and transfer them to movement on the screen. It is much more accurate and can be faster than the response on a standard ball mouse. If you pick up the mouse and it has a red light shining from the bottom it is an infrared mouse.
Write algorithm and draw a flow chart to find the total and average of a student for six subjects?
write an algorithm to compute the weekly average rainfall given the daily rainfall for four weeks
Mapped network drive. In Windows networks, an external resource has the form "\\MyServer\MyFolder\MySubFolder\MyFile.doc". The folder part, "\\MyServer\MyFolder\MySubFolder", can be assigned ("mapped") to a drive letter, for example, "M:"; in that case, you refer to the document as "M:\MyFile.doc".
Mapped network drive. In Windows networks, an external resource has the form "\\MyServer\MyFolder\MySubFolder\MyFile.doc". The folder part, "\\MyServer\MyFolder\MySubFolder", can be assigned ("mapped") to a drive letter, for example, "M:"; in that case, you refer to the document as "M:\MyFile.doc".
Mapped network drive. In Windows networks, an external resource has the form "\\MyServer\MyFolder\MySubFolder\MyFile.doc". The folder part, "\\MyServer\MyFolder\MySubFolder", can be assigned ("mapped") to a drive letter, for example, "M:"; in that case, you refer to the document as "M:\MyFile.doc".
Mapped network drive. In Windows networks, an external resource has the form "\\MyServer\MyFolder\MySubFolder\MyFile.doc". The folder part, "\\MyServer\MyFolder\MySubFolder", can be assigned ("mapped") to a drive letter, for example, "M:"; in that case, you refer to the document as "M:\MyFile.doc".
Why assembly language is still needed if you have hll offering sophisicated tools?
Yes, assembly language is definitely still used. Many I/O drivers and much of the bootstrap code that starts a computer must be written in assembly language as high level languages do not provide means for coding certain special purpose instructions needed for these operations. Also high level languages usually require that subroutine library codes be available, while assembly language does not. As these subroutine library codes usually cannot be loaded until the Operating System is up and running, assembly language must be used for much of the code that bootstraps the computer and loads the Operating System.
Solve simple intress usin fortran
What are the advantages and disadvantages of binary search algorithms?
the major limitation of binary search is that there is a need of sorted array to perform binary search operation.
if array is not sorted the output is either not correct or may be after a long number of steps and according to data structure the output should come in minimum number of steps.
What happen if you Mix RAM sticks of different speeds?
Yes you can mix the ram, but the ram will default to the slowest of the set and only run at the slower speed.
Define structure oriented programming language?
A structure oriented language is one, which should the following structure as Documentation Section, Link section, Definition Section, Global declaration section and Functions(including Main functions) in an hierarchical order. This order cannot be interchanged, but structure oriented language like C can have these sections as optional. Correct me if am wrong, Neela.T
There are many types of format specifier.
Exp:%d (To show the integer)
%c(To show the character)
%f(Float are digits with decimal points to use it to show them)
%s(String to show the string)
How state Diagram are different from the Activity Diagram?
They are not as they both have the same features it just provides a better understanding when using one diagram in conjunction with the other.
State machine diagram shows how state of some object or system could change, so transitions on the diagram are from one state to another state.
Activity diagram shows set of actions and how one action could lead to another.
In simple cases these diagrams might look like reverse of each other but in practice you need to select whether the diagram is about discrete number of states of some object or is it about organization of actions and activities possibly related to many different objects.
Where was the BASIC programming language developed?
1801. Joseph Marie Jacquard's mechanical loom took input in the form of punch cards laced together to form a chain and produced an output in the form of woven cloth. By any definition, Jacquard's "machine code" was arguably the first programming language as we know it today. Whether we regard a loom as being a computer or not is immaterial when discussing programming languages.
1833. Charles Babbage's Analytical Engine used a similar principal (punch cards) and although the device was never built, the design included the machine code necessary to program it. There was an attempt to fund construction of a working model in 2010 which failed to materialise. However, in 1991, another of his designs, Difference Engine No. 2 which evolved from his work on the earlier Difference Engine and Analytical Engine, was built and proved his designs were sound. Babbage is posthumously known as the "father of the computer" and it can easily be argued that his "machine code" was the first computer programming language.
Of course we had analog computers long before Babbage. A slide-rule is a typical example. They were programmable in a sense, but whether we can call them programming languages is debatable.