Can pointer be assigned a value?
A pointer is a variable just like any other, so of course it can be assigned a value. However, being a pointer, the value must be a memory address. If you want to assign a value to that memory address rather than the pointer, you must dereference the pointer.
A Boolean is a variable that can hold the value true or false. In most implementations, true is the all-ones bit pattern while false is the all-zeroes bit pattern. As a signed integer in twos-complement notation these patters represent -1 and 0 respectively. However, numeric values can and often do implicitly convert to a Boolean such that non-zero values are always true while zero is always false. For typical container objects (including strings), an empty container implicitly converts to false while a non-empty container implicitly converts to true.
What are the political functions of a language?
When a Language is well developed then If any political party arises between that language people then the political group will be a linguistic group. The political group will support the customs followed the language speakers. thus they become supporters of the particular group people thus the gain popularity. Language influences the activities of the political group.. I mean the Literature plays a key role as the people follow the practices mentioned in their literature. If you arent satisfyied I'm sorry. Have a good day!!
Because in order for high-level programming to work the manufacturer has to make documentation and the resources available for different types of peripherals. And seeing that device drivers as far as what I've been told in Windows has been traditionally been written in assembly, it makes interfaces for high-level languages close to impossible unless if you can obtain support for it via the operating system (Windows spooling service or CUPS in *nix and OS X)
Write a program in 8086 assembly language that copies a string to another location in the memory?
; program for moving a string from one block of memory
;to another block of memory
data segment
str1 db 'suriya',0
str2 db 20 dup(0)
data ends
code segment
assume cs:code,ds:data,es:data
start: mov ax,data
mov ds,ax
mov es,ax
mov cx,6
lea si,str1
lea di,str2
cld
rep movsb
int 3h
code ends
end start
What is the difference of non void and void function?
If a method call is void, that means it will not return a data value to a program that calls it. Otherwise, the method is expected to return a data value of some sort.
For example, if I have a method called print() that is void, and the body of the method has a command to print a word to the screen, the method will run that command and end.
However, if I have a method called add(int x, int y) that takes two numbers and adds them together, the program calling this method wants an answer back. So this method is not void.
RAM stands for Random Access Memory, and is the thinking space for a computer. Note that it doesn't acctually do anything by itself, it is merely a short term memory for the CPU.
(Do you know how to use Google?)
Which are programs that pretend to be a useful program but do something malicious on your computer?
Trojan Horses
What are the advantages of worst-fit algorithm?
It can be used in computer programming. It helps you to see which options are not viable and would not help out the situation.
What steps are required form an algorithm to convert a binary number to it's decimal equivalent?
Let's look at an example. If you want to convert the number 100112 to decimal you can split up the number so each digit has an index associated to it:
4 3 2 1 0
1 0 0 1 1
We can then find the decimal value:
24 * 1 + 23 * 0 + 22 * 0 + 21 * 1 + 20 * 1 =
16 * 1 + 8 * 0 + 4 * 0 + 2 * 1 + 1 * 1 = 16 + 0 + 0 + 2 + 1 = 19
So what we need to do is to multiply each of the binary digits by the value of two raised to the index of the digit. This will give you the conversion from any binary number to a decimal number.
What are the differences between thread and function in C plus plus?
As people do computer has head to think and hands to work. Under the control of it's head(CPU), you can consider threads as its hands. A computer has more than one hand, every hand would do one thing independently but have to wait its order. Function, as it demonstrate by the name, means what task a software can conduct.
How many constructors may be defined for a class?
As many as are required for the class to function. All classes other than static classes require at least one constructor. Most classes will also provide copy and move constructors (with corresponding copy and move assignment operators). Additional constructors are usually provided to increase the flexibility of the class, allowing users a variety of ways to initialise objects of the class.
Constructors that accept just one argument (excluding the copy and move constructors) are regarded as being conversion constructors because, from a user's perspective, they effectively convert their argument into an object of the class.
Although there is effectively no limit to the number of constructors you can define, do keep in mind the mantra that simple concepts should be expressed simply and no simpler. Make good and proper use of inline initialisation, default arguments and delegation. Use explicit constructors to avoid narrowing issues and implicit conversions where narrowing is acceptable. Also, make good use of RAII (resource acquisition is initialisation) to ensure proper cleanup should any member fail to initialise during construction. For efficiency, perform as much initialisation as possible outside the body of the constructor. Ideally, the constructor body should contain no code at all.
What is mean by Extra key inserted at the end of Array?
It means the array has a sentinel to mark the end of the array. Any elements that follow the sentinel element are deemed invalid. Sentinels are usually denoted with a special value that is not used by any of the elements that precede it. Null-terminated strings are an example, where the NULL character (ASCII code 0) marks the end of a character array.
Explain the structure of c program with an suitable example?
Basic structure of a C program is /* Documentation section */ /* Link section */ /* Definition section */ /* Global declaretion section */ /* Function section */ (return type) (function name) (arguments...) void main()
{
Declaration part Executable part (statements)
} /* Sub-program section */ (return type) (function name 1) (arguments...) (return type) (function name 2) (arguments...) .
.
. (return type) (function name n) (arguments...) Basic structure of a C program is /* Documentation section */ /* Link section */ /* Definition section */ /* Global declaretion section */ /* Function section */ (return type) (function name) (arguments...) void main()
{
Declaration part Executable part (statements)
} /* Sub-program section */ (return type) (function name 1) (arguments...) (return type) (function name 2) (arguments...) .
.
. (return type) (function name n) (arguments...)
How do you classify triangles by angles and sides?
you classify triangles by seeing the sides as if the triangle was isosceles, equilateral, or scalene
Isosceles= two angles equal or two sides equal
Equilateral= all angles equal and all sides equal
Scalene= all angles different and all sides different.
☻☻ I HOPE IT HELPED☻☻
What application instruction that make the computer hardware work?
The CPU does all the actual work and there can easily be a hundred or more separate instructions that a modern CPU understands, each of which does a very minute job, whether it is to move a value into a register or into memory, or to compare register values, or to perform simple arithmetic upon them, and so on. Common interfaces provided by the BIOS allow the CPU to interact with the basic hardware components in order to load an operating system, while the operating system itself provides more specific device control via driver software.
Examples for low level languages?
Low level languages can interact directly with the computer's basic functions and many low level tasks, hence the name low level language. Some examples include:
ASM (also known as Assembly)* is used to write Windows and Linux operating systems.
Machine code** is another one which requires no translation for the computer to understand, but it is almost never used because every function has to be perfect and the programmer must also memorize every command.
C is also a low level programming language, but is easier to use, a base for many high level languages and is used more frequently than the other two languages just mentioned.
Related Information:
* ASM looks like this:
fib: mov edx, [esp+8]
cmp edx, 0
ja @f
mov eax, 0
ret
** Machine code looks like this:
8B542408 83FA0077 06B80000 0000C383 FA027706 B8010000 00C353BB 01000000 B9010000 008D0419 83FA0376 078BD98B C84AEBF1 5BC3
What is an explaination of advantages of mail-merge?
Mail-merge's main advantage is to save a lot of time.
Fundamentally, mail-merge means taking one form letter, and then using a program/computer, to modify small parts of it based on a list.
Most typically, one has a common letter whom which to sends to several different persons.
Usually, the only things different between each letter would be the addressee, the salutation, and perhaps other minor customizing attributes like "Mr.", "Ms.', etc.
Mail merge uses a list of data with named items corresponding with special parts of the letter with the same named areas.
As each letter is generated or printed, each named entry in the list of data gets placed into the same named place in the letter making it seem as though each letter was customized yet the computer does the customization.
Clearly, when tens or hundreds or more letters (or other types of correspondence) need to be sent to a list of different people or companies, mail-merge can do most of the work for you.
Most businesses, for example, maintain address lists of customers. Using mail-merge, the computer does the letter salutation, possibly other differing content based on customer, and most importantly, takes care of addressing both the letters and envelopes.
Even the holiday cards and letters can be customized and addressed the same way.
What is a computer program that tells the computer how to perform particular tasks?
Every software program have a help section it would assist you the best telling you about the usability of that particular software or program.