It's still an assembler, just because the machine it is assembled in isn't running doesn't mean the name changes.
What function enables the user to input information while the program is being executed in c?
The scanf() function is a commonly used function to input information during the execution of a program. scanf() function has its prototype in the stdio.h header file.
To accept and display a number:
int num;
printf("Enter a number: ");
scanf("%d",&num);
printf("You entered %d",num);
To accept and display a character, replace %d with %c and make num a character variable [char].
Plus: gets, fgets, read, fread, getchar, getc, fgetc, getch...
What are the advantages of HashSet over Array?
Array list and linked list are very effective Data Structures. However, ArrayLists are not effective for adding and removing elements in between and Linked Lists take a lot of time when iterating through the elements. A HashSet is effective in both aspects. However, the selection of HashSet is better if the data we enter needs to be traversed while addition and removing is frequent. Further, HashSet cannot have duplicates. So in places where we need to avoid duplicating data, HashSet would be the key.
What is the technical name for a number with a decimal point?
A number.
37. is a number with a decimal point and it is an integer.
37.2 is a rational number.
37.23459... which continues for ever, without coming to a recurring pattern is an irrational number.
Multiprogramming with variable partition?
Multiprogramming - variable partitions
However, complete wastage is still not reduced
How do you convert a pdf file into a doc file using VB code?
You will need a PDF server running somewhere that can be accessed by your VB code. It will need to be called from the code through the server and get the PDF file in return.
I did that with Tweak PDF Converter, an pdf editor for converting pdf file to word form.
Palindrome number is a number like 121 which remains the same when its digits are reversed. To find this number in a simple java program, just follow the below way. sum = 0; while(n>0) {
r=n % 10; sum=concat(r); n=n / 10; } print r;
What is the Real Address System 038413807?
you probably mean the mac address that's the address your device wireless or network card has embeded into it.
How do you figure out alphanumerics?
if you are talking about the more general CS term of alphanumerics, then you are talking about all printable characters such as all letters, numbers, symbols, punctuation marks, etc. So, if your question is what are alphanumerics, there you go.
Now, if you want to know about hexadecimal, then look at it this way. What we use for our numbering system is base 10 and, thus, the reason that it is called Decimal. Deci- is a prefix meaning ten, after all. Hexadecimal is a combination of the two prefixes Hex- and Deci-. In this case, they are to represent six plus ten or, in other words, base 16. Now since there are only ten numerals in our numbering system, we had to borrow some letters to stand in for the additional numbers, specifically A through F.
So, how does hexadecimal work? It works just like decimal: you can have up to the base number minus one as the maximum value for each place. So, for the ones place, you can have values 0 through 9. The same with the next place, which is called the tens. So, the number 63 means 6 in the tens place and 3 in the ones place. In hexadecimal, the same pattern holds true but the maximum value increases. The minimum of course is still zero but the top value is F. So, if you want to see how it works, let's use the hexadecimal value of 3F. This means that there is a 3 in the sixteens place (it is sixteens because this is hexadecimal, so a base 16 numbering system) and F in the ones place.
Now, you might want to try to figure out how to convert from hexadecimal to decimal. Well, it's very simple. Since we know that 3F is 3 sixteens and F ones, we can do a bit of easy multiplying. 3 x 16 is 48 and F is the maximum value that can be in a place in base 16, so as the rule said, that must mean that it is the base value minus 1, which is 15. So, 3F is 48 plus 15, or 63. (Hmmm, interesting how that worked out, huh? ;-) )
Now, what about larger values? The same pattern continues. In decimal, the places are singles, tens, hundreds, thousands, etc. Each time we move a place to the left, the value increases by a factor of ten. Basic, right? Well, the same pattern holds true for hexadecimal but it instead increases by a factor of sixteen. Thus, you have singles, sixteens, 256s, 4096s, etc. So, to show how it works, let's try 3F0. This means that we have 3 in the 256s place, F in the 16s place, and 0 in the singles. Once again, we do a bit of multiplication. 3 x 256 is 768, and F x 16 equals 240, so 3F0 is 768 plus 240, or 1008.
If you want to convert from decimal to hexadecimal, it is a bit more complex since most people don't think that way but it still isn't difficult. Let's convert 1008 back to hexadecimal. So we know that we have 1 in the thousands, 0 in both the hundreds and tens, and 8 in the singles. Well, we know that the maximum place with which we will be working is the 256s since the next step up is the 4096s. So, we are certain this will be a three-digit number. So, to start, how close to 1008 can we come with multiples of 256 without going over? That would be 3 256s, leaving a remainder value of 240 (in decimal, of course). So, we move to the next place: the 16s. How many multiples of 16 can we get out of 240 without going over? That is fifteen but we cannot write it as 15 of course, because that is decimal notation. In hexidecimal, that value is written as F. Since there is no remainder from that solution, we know that the singles value has a 0 in its place. Thus, the conversion of 1008 in decimal is 3F0 in hexadecimal.
Does this help you with either interpretation of your question? If you have any other questions or if this is about as clear as mud at midnight, let me know and I will be glad to assist you further.
Where we can use dijkstra's algorithm?
A practical application is in certain routing protocols, like OSPF. The problem it solves is to search for the "shortest" path to each destination - "shortest" meaning the one that has the lowest "distance" or "metric" according to the criteria used.
Dijkstra's algorithm is easy to use and is a good graph search algorithm to use when it is hard to calculate the heuristics.
Design a While loop that lets a user enter a number?
The only reason to use a "while" loop is to reject invalid data. In pseudocode, it is something like this:
do {
(ask for number - store to variable "x")
} while ("x" is invalid)
The details within parentheses will depend on the programming language. The condition for the "while" also depends on the condition you want to fulfill; for example, you might reject a number that is negative or zero. Note that this uses a "while" that is evaluated at the end; in this case, the loop is executed at least once. If the condition is more complicated to evaluate - for example, the data is input as text and you need to reject non-numeric input - you can do additional processing within the loop, and set a variable "valid" that will be true if the input is valid. In that case, the last line will simply change to:
... while (!valid)
How many steps are involved in writing a computer program?
It depends on the type of computer program you desire. At the bare minimum you need 3 steps in order to make a simple program. The first that is learning you compiler's language (example: JavaScript, C++, C# ect.) and next is to learn how to avoid syntax errors and then create the program that you want. For example, to make a simple execution program using command prompt you will have to learn the commands of a .bat file and then order the commands correctly in order for command prompt to execute and then let it run. Most of programming is trial and error thought the more you get acquainted with your compiler the easier and better you'll become a making your program.
I have no need to flag memory leaks or unassigned pointers because I eliminate all leaks at source by using resource handles, smart pointers and making proper use of RAII.
In vb6.0 why we are using modules?
Hi.
What is a C program to calculate the number of characters in a string?
#include<stdio.h>
int Strlen (const char* str) {
if (!str) return -1; /* invalid argument */
int count;
count=0;
while (*str++) ++count;
return count;
}
int main (void) {
char str[1024];
scanf ("Enter a string: %s\n", str);
printf ("Length of string: %d\n", Strlen(str));
return 0;
}
What does machine language consists of?
A series of 1's and 0's which represent Instructions.
Assembly Language is a 1-to-1 representation of machine code in human readable context. Assembly Language can also contain comments and label names which get filtered out when converting assembly to machine code (compiling).
If you want to read machine language, you use a disassembler to convert machine code into assembly. Otherwise programs such as notepad or nano will show the contents of the file as gobbly-gook (random characters with no meaning).
32-bit processors parse the file into 32-bit 1's and 0's segments. Each segment gets ran and processed individually. And not all segments are meant to be ran. Some are data and get skipped over, and other instructions load and use that data for their intended purpose.