Different types of macros in assembler?
Types of macros In general, there are two types of macros: ExecutiveThese macros generate either code or data that is incorporated into the program being assembled.
Generally, an executable instruction is generated.DeclarativeThese macros produce information used by the assembly process while generating code.
z/TPF system programs use a large set of macro instructions to generate linkages or to simply generate inline code. Many of these macros are restricted to system programs because the macros are subject to change in future releases and represent an unprotected interface. A macro with an unprotected interface is called a system macro. Because some z/TPF system programs run in the application execution environment, some of the system macros also generate SVC linkages.
What is the difference between symbolic link and hard link?
A hard link is an actual physical entity representing the link. i.e.--data file on a server.
A symbolic link is a pointer to a physical entity. The purpose of a symbolic link is, if the object moves, the symbolic link is coded so no matter where the object physically resides, the database can find it. It requires less administration not having to update locations in files pointing to files that have moved. Symbolic links function similar to the short-cuts in a DOS based operating system
AnswerIn Unix and Unix-like systems, a hard link is a directory entry (filename) that points to the file itself. The operating system keeps track of how many hard links point to a file, so when the last hard link to a file is removed, the file is deleted. A symbolic link is a special file that only contains a filename. The file that a symbolic link refers to may not necessarily exist at any given time.Why is cyclic inheritance not in any programming language?
Cyclic inheritance is physically impossible. A base class cannot inherit from one of its own derivatives any more than you could inherit some generic trait from one of your own descendants. Inheritance is strictly a one-way street.
Can Array-based lists can never be empty?
It's either an array or it's a list, it cannot be both. However, an empty array is entirely possible:
std::vector<int> my_vector; // an empty array
my_vector.push_back(42); // an array of 1 element
my_vector.push_back(1); // an array of 2 elements
my_vector.clear(); // an empty array
An empty list is also possible:
std::list<int> my_list; // an empty list
my_list.push_back(42); // a list of 1 element
my_list.push_back(1); // a list of 2 elements
my_list.clear(); // an empty list
The same thing can be done in C:
int* my_array = nullptr; // an empty array
my_array = malloc (2*sizeof(int)); // an array of 2 elements
my_array[0] = 42;
my_array[1] = 1;
free my_array; // an empty array
my_array = 0;
Why wont your c plus plus program stay open?
If you are talking about the program executing, but the output screen being displayed for a flash and then disappearing, I suggest adding getch() or getchar() function at the end of your main function. This will make sure that the output screen waits for you to press a character before the program terminates.
What is E notation and why is it often used in computer programming?
The E notation is used when very large numbers cannot be displayed or calculated. For example: 5.11111e+10 = 5.11111 x 10^10 or 5.11111 x (10 x 10 x 10 x 10 x 10 x 10 x 10 x 10 x 10 x 10).
The e+10 can be changed to anything. For example: e+3 = (10 x 10 x 10). (10 x 10 3 times).
How do you find the smallest value in a set of numbers in qbasic?
Store the numbers in a suitable container such as an array. Assume the first number is the smallest and assign its value to a local variable. Traverse the remainder of the sequence, comparing each element's value to the stored value. If an element has a lower value, assign its value to the local variable. When the sequence is fully traversed, the local variable will hold the value of the smallest value in the sequence. Return that value.
Can structures be passed to the functions by value?
Structures can be passed to the functions by value. But it has to be copied to another location. Hence wastage of memory
When an array name is passed to function in c?
It 's address is received by the function .
that any changes in the value of array elements in the function will result in actual change.
Governance at the macro level covers all aspects of exercising authority through formal and informal institutions in managing a state's resources for sustainable development. Thus, the elements of macro governance include the creation a favourable climate for economic growth, transparent budgetary and financial management, transparency in the political process, and a voice for all citizens, while providing them with effective social and environmental services.
Source: Arab guy at UNSW
Is it necessary to read or display the elements of an array in order of its subscripts?
By no means; you can access any random array element. If you have ever seen examples which process them in order, it is because of the following: when the order doesn't matter (for example, you want to calculate the sum of all the array elements), it is easiest to process them in order.
It has several meanings, none of which have anything to do with computer programming. In mathematics, a Quadrature is a numerical integration.
What is accuracy of a good program?
It depends on to what level of accuracy you tend to have with the output of your program
Accuracy can be treated as: (Desired Output / Actual Output of your Program)
A place where you store your documents. However, this may have special meaning within certain contexts/applications.
What is a side-by-side configuration?
A side-by-side configuration is simply an arrangement where two things are adjacent to each other. It could be said that houses are built on lots in a side-by-side configuration. Driving down the street, you see house after house after house. The main guns on a battleship are arranged in a turret in a side-by-side configuration.
What is the maximum speed at which data can be transmitted between two nodes?
The speed of light is the limit for the transmission of information. As for the bandwidth (the number of bits per second that are transmitted), fiber optics currently exist that allow 40 Gbps; experimentally, higher bandwidths have already achieved, but this is not standardized. It is also possible to connect several of those in parallel, to achieve even higher bandwidths.
Is it the most efficient approach to access elements with the vector data structure?
Yes. A vector is a variable-length array but constant-time random-access is guaranteed regardless of an array's length.
When advantages do a procedural language have over a declarative language?
Can a method be declared in any order in a class?
Yes. There is no specific order in which the compiler expects methods to be present. As long as the method is inside the class it is perfectly fine.