What are the function of double insulated case?
An electrical appliance which is double insulated does not have an earth wire fitted. The appliance is designed in such a way that the electrical parts can never come into contact with the outer casing of the device. Common double insulated appliances are hair dryers, radios and cassette players.
Can there be multiplle increment exression in increment part of the for loop statement?
Yes, you can have multiple expressions in the increment poart of the for loop statement. Just use the comma, and each expression will be evaluated from left to right.
Why an array is called derived data type?
it contains the similar type of object which derive from the predefined data type
like int,float,char e.t.c
so it is called derived data type.........................
In C plus plus is it possible to instantiate an array without specifying a length?
No. You can declare a dynamic array without specifying a length, but in order to physically instantiate (either by using malloc or by using object-oriented construction) you must provide a length.
What are Weakness of using pointer in c plus plus?
The main weakness is that the onus is primarily upon the programmer to ensure pointers are not misused, that any memory allocated to a pointer is released as soon as that memory is no longer required, and that pointers are nullified when not in use. There is no automatic garbage collection other than when a thread terminates, at which point all consumed memory is returned back to the system, however its never a good idea to rely on this. Programs with a long life-cycle must be specifically written to clean up resources behind themselves as they go, but the same should apply to any program, regardless of how trivial. It costs nothing and failure to do so is not only lazy, the consequences could easily be dire. If the program were part of an autopilot system, for instance, the consequences wouldn't bear thinking about. For this reason alone, C++ programmers are actively encouraged to use references wherever possible (because they are much easier to use and they clean up after themselves automatically), and to only use pointers when it is absolutely necessary.
Does price have fractional parts? If so go with a double. Otherwise use an int or long, depending on how large price is going to get.
Is windows XP a procedural language or object oriented?
Windows XP is an operating system, not a programming language.
How do you make a your own programming language using C?
It's not that easy, you should read a book and/or take a course about.
What is the assembly language program for 32 bit addition?
Example for System/360 CPU:
L R0,A
A R0,B
ST R0,SUM
...
A DS F
B DS F
SUM DS F
1. false
2. true
3. false
4. true, but that statement can be a compound statement, ie a statement-block between {}
5. false
What is Decbit algorithm for congestion avoidance?
In congestion avoidance, each router monitor the load it is explicitly notify the end node ,when the congestion is about to occur.This notification is implementing by setting a binary congestion bit in the packets that flow through the router, known as DECbit .The destination host then copies this congestion bit into the ACK it sends back to the source. Finally, source adjust its sending rate so as to avoid the congestion.
Its easy or hard computer science?
Computer Science courses involve studying and understanding the scientific and/or practical applications of computing. CS generally involves learning how to program so one can either write programs to accomplish specific goals or understand how computers operate so as to know how programs other people write operate.
Computer science is difficult. The amount of difficulty depends upon how much experience a person has had with computing and how much work one is willing to spend on the tricky task of troubleshooting: finding problems and their solutions.
Considering how prevalent and ubiquitous computers are becoming in society, computer sciences are becoming more complex. At the same time, every industry needs computer sciences, or the results of computer sciences. So long as you have the drive and perhaps love for computing, computer science is a worthy study.
Algorithm of the addition of the two matrix?
I really don't understand you.....
Algorithm to implement Multiple queue in single dimensional array?
algorithm on multiple queues in a single dimensional array
How c recognize keywords or predefined functions?
Built-in types (int, char, double etc) are not defined in headers, because they are built-in types.
Header files contain data-definitions and function-prototypes (those may include compiler-specific informations, like __attribute__), but not function implementations. If you are interested in the source code of library functions like printf, you have to do some google search.
Can you get any software to convert .exe format to machine level language?
EXE is not a format it is a file extension. The formal format of an EXE file in Windows is the Program Executable (PE) format and, these days, will either be in the PE32 or PE32+ format, the latter denoting a 64-bit executable.
However, EXE files are already encoded in native machine code. No conversion is required. If you want to render the code in a human readable form, use a disassembler. If you want to look at the raw code, use a hex editor.
What is the definition of parent function?
When a function is nested inside another function, the outer one is the parent, the inner is the child.
Maximum value of an unsigned integer is how many bytes?
Type size of an unsigned integer is compiler specific. Most compilers will provide 4 bytes, but the size can range from 2 to 8, or (again) whatever the implementation provides.
Note:
1. Maximum value: UINT_MAX (in limits.h)
2. Size in bytes: sizeof (unsigned)
What is a C plus plus program to change 5x5 array to 1x25 array?
An array is simply a contiguous block of memory. The length of that memory is the product of all its dimensions multiplied by the size of its type. Thus a 5x5 array is exactly the same as a 1x25 array. The only difference is in how you refer to each element.
The following code demonstrates how we can remap a 5x5 array to a 1x25 array, simply by pointing at the first element. Note that we haven't actually changed the array, nor have we copied it to new memory. We're simply interpreting the exact same memory in two different ways.
#include<iostream>
#include<iomanip>
int main()
{
int x[5][5] = {
1, 2, 3, 4, 5,
6, 7, 8, 9, 10,
11, 12, 13, 14, 15,
16, 17, 18, 19, 20,
21, 22, 23, 24, 25
};
// treat as 5x5 array:
for (int a=0; a<5; ++a)
{
for (int b=0; b<5; ++b)
{
std::cout<<std::setw (3)<<x[a][b];
}
std::cout<<'\n';
}
std::cout<<std::endl;
// treat as one-dimensional array (remap)
int* y = x[0];
for (int c=0; c<25; ++c)
std::cout<<std::setw (3)<<y[c];
std::cout<<'\n'<<std::endl;
}
Output:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Can you write a program that implements cramers rule for 2x2 and 3x3 matrix?
Yes I can. I did it in QBasic about 15 years ago.