answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What is l value in c program?

An l-value is an expression with an address, named after being able to occur on the left side of the = (assignment) operator. (Technically, a variable declared with a const keyword is an l-value, but cannot occur on the left side of the assignment operator, so the original definition is no longer accurate.)

What is p value in regression analysis?

The p value is NOT a probability but a likelihood. It tells you the likelihood that the coefficient of a variable in regression is non zero.

The p-value is: The probability of observing the calculated value of the test statistic if the null hypothesis is true

What ways of checking the validity of information gathered from ict sources and non sources?

Check more than one source. If they differ then check more sources until you get the straight facts.

What keys do you hold down to upload multiple pictures at once?

Depends on the program, but usually pressing down the control (ctrl) button well selecting your photos will do the trick :)

Which programming language develop by the US?

Lots of programming languages were developed IN the US or BY US citizens, but there are no languages that were developed BY the US as a whole.

In Computer programming Why is it considered good programming practice to define the number of array items as a constant before declaring the array?

In computer programming, (1) When a number is needed several times in a program, it is good practice to give that number a name. (2) When a name refers to a number that will never change during a run of a program, it is good practice to declare it as a constant before using it.

In most programming languages, we do not define the number of array items as a constant. In many programming languages, it is easy to add items to an array, and an array keeps track of the number of items it holds, which a program can access using something like "array.length" or "array.shape". However, in C and C++ programming, the programmer must define the size of the array at the time it is defined, and the array does not keep track of the number of items it contains. To not define your array would leave the program open to unchecked growth. "Capping" the array with an upper value ensures that, if something goes wrong, you will not crash the application or system. Also, capping the array will make debugging potentially easier. Capping requires using that number in several places, and so (1) tells us it is good practice to give that number a name. Since it is not possible(*) to change the size of an array in C or C++, the number that holds the number of items in the array will never change, and so (2) tells us it is good practice to declare it as a constant. (*) There are a few tricks one can do with malloc() and realloc() that have the same effect as resizing an array, although technically all those tricks merely create a new fixed-size array.

What is the larest binary number a nibble can hold?

A nibble is 4 bits, so the largest unsigned number is 1111, or 15. Also, the largest signed number is 0111, or 7.

When variable in c gets memory After declaration or initialization?

Definition.

Example:

extern int x1; /* declaration */

int x2; /* definition */

int x3= 2; /* definition with initialization */

In informatica 8x what is the PWX?

PWX is used to denote Informatica's Power Exchange - a set of plugin components for Informatica PowerCenter to allow it to be able to connect to data sources such as:

  • mainframe data (e.g. DB2, IMS, IDMS,Adaba,VSAM)
  • enterprise application software (e.g. Peoplesoft, Salesforce.com, SAP, JD Edwards, Siebel)
  • messaging systems (e.g. Websphere MQ, JMS)

There are also PowerExchange (PWX) components for email, social networking sites, and change data capture (CDC) on relational databases.

Define parent function?

A parent function refers to the simplest function as regards sets of quadratic functions

When writing code what can be nested for statement or if statement or both?

Both.

for (int x=0; x<10; ++x) { // outer loop

for (int y=0; y<10; ++y) { // nested loop

std::cout << x*y << '\t';

} // end nested loop

std::cout << std::endl;

} // end outer loop

std::cout << std::endl;

void f(bool x, bool y) {

if (x==y) {

if (x) {

std::cout << "x and y are both true\n";

} else {

std::cout << "x and y are both false\n";

}

} else {

if (x) {

std::cout << "Only x is true\n"

} else {

std::cout << "Only y is true\n"

}

}

}

Note that the nested if within the else clause of the outer if can also be written as an else if statement:

void f(bool x, bool y) {

if (x==y) {

if (x) {

std::cout << "x and y are both true\n";

} else {

std::cout << "x and y are both false\n";

}

} else if (x) {

std::cout << "Only x is true\n"

} else {

std::cout << "Only y is true\n"

}

}

How can one learn CGI programming?

One can learn about CGI programming from books. They can search books from amazon using CGI programming as a key word. They can also learn about CGI programming from websites like cgi101.

Where will i find links for good topics for mini projects in vb or ready projects in vb?

The way you answer that question is to.....

go to wvssfair.com and you will find all kinds of web sites!!!!! :)

Well actually you could go to projects.com/mini

What does reached end of file while parsing mean?

Found this on the web, hopes it helps: tarbo

Posts: 219 Re: reached end of file while parsing error

Posted: May 3, 2007 5:49 AM in response to: jlnickymaster

Reply

The compiler was parsing your code and was expecting another token--in this case, likely an ending brace: '}'--but instead reached the end of the stream.

In layman's terms, you're missing a brace to close your class definition.

What causes a memory leak?

A memory leaks can occur in a computer when a program on one's computer improperly manages the computer's memory allocations. This may happen when a object is stored but cannot be accessed by a running code.

What programming languages are used in analog computers?

None.

Analog computers are "programmed" by wiring them up with cables and jumper wires. On some the program is even built in at design and cannot be changed.

What does the program SpeedUpMyPC do?

I really recommend CCleaner,

For me it's the best in 2021

open the picture and note the link on the search bar

you will have a reduction

Which variable is use for create for read only variable?

That really depends on the language. Some languages have "constants" separate from "variables"; in Java, for example, the "final" keyword is used to have a variable that can't be changed once it is assigned a value.

Explain Clustering with respect to storage structures in databases?

In the above process, if the page containing the requested record is already in the memory, retrieval from the disk is not necessary. In such a situation, time taken for the whole operation will be less. Thus, if the records which are frequently used together, more records will be in the same page. Hence the number of pages to be retrieved will be less and this reduces the number of disk accesses which in turn gives a better performance. This method of storing logically related records, physically together is called clustering. For example, consider CUSTOMER table as shown below. Cust ID Cust Name Cust City…. 10001 Raj Delhi …. 10002 …. …. …. 10003 …. …. …. 10004 …. …. …. …. …. …. …. …. …. …. …. If queries retrieving Customers with consecutive Cust_IDs frequently occur in the application, clustering based on Cust_ID will help improving the performance of these queries. This can be explained as follows. Assume that he customer record size is 128 bytes and the typical size of a page retrieved by the File Manager is 1 kb (1024 bytes). If there is no clustering, it can be assumed that the customer records are stored at random physical locations. In the worst-case scenario, each record may be placed in a different page. Hence a query to retrieve 100 records with consecutive Cust_IDs (say 10001 to 10100), will require 100 pages to be accessed which in turn translates to 100 disc accesses. But, if the records are clustered, a page can contain 8 records. Hence the number of pages to be accessed for retrieving the 100 consecutive records will be ceil (100/8) =13. i.e., only 13 disk accesses will be require to obtain the query results. Thus, in the given example, clustering improves the speed by a factor of 7.7. * Intra-file Clustering - Clustered records belong to the same file (table) as in the above example. * Inter-file Clustering - Clustered records belong to different files (tables). This type of clustering may be required to enhance the speed of queries retrieving related records from more than one table. Here interleaving of records is used.

What is the difference between for instance and for example?

Normally Instance should be use for describe the situtaion in speaking ( formal)

Whereas example should be use for wrinting purpose.

How do you write a header for a 128x128x128 dds volume texture file with no mipmaps and does it have to be written in binary?

According to the documentation on MSDN, the following code should create an uncompressed volume texture DDS file that's 32x32x32 in size. Re-scale as you see fit. Note: a 128x128x128 RGBA texture will take up 8 MB of VRAM! #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #define DDSD_CAPS 0x00000001 #define DDSD_HEIGHT 0x00000002 #define DDSD_WIDTH 0x00000004 #define DDSD_PITCH 0x00000008 #define DDSD_PIXELFORMAT 0x00001000 #define DDSD_MIPMAPCOUNT 0x00020000 #define DDSD_LINEARSIZE 0x00080000 #define DDSD_DEPTH 0x00800000 #define DDPF_ALPHAPIXELS 0x00000001 #define DDPF_FOURCC 0x00000004 #define DDPF_RGB 0x00000040 #define DDSCAPS_COMPLEX 0x00000008 #define DDSCAPS_TEXTURE 0x00001000 #define DDSCAPS_MIPMAP 0x00400000 #define DDSCAPS2_CUBEMAP 0x00000200 #define DDSCAPS2_CUBEMAP_POSITIVEX 0x00000400 #define DDSCAPS2_CUBEMAP_NEGATIVEX 0x00000800 #define DDSCAPS2_CUBEMAP_POSITIVEY 0x00001000 #define DDSCAPS2_CUBEMAP_NEGATIVEY 0x00002000 #define DDSCAPS2_CUBEMAP_POSITIVEZ 0x00004000 #define DDSCAPS2_CUBEMAP_NEGATIVEZ 0x00008000 #define DDSCAPS2_VOLUME 0x00200000 int depth = 32; int width = 32; int height = 32; unsigned int header[32]; int main( int argc, char * argv[] ) { if( !argv[1] !strstr( argv[1], ".dds" ) ) { fprintf( stderr, "Usage: noise output.dds\n" ); return 1; } unsigned int cnt = width*height*depth*4; unsigned char * buf = new unsigned char[ cnt ]; while( cnt-- ) { buf[cnt] = rand()>>7; } memset( header, 0, sizeof( header ) ); header[0] = ' SDD'; header[1] = 124; header[2] = DDSD_CAPS | DDSD_PIXELFORMAT | DDSD_WIDTH | DDSD_HEIGHT | DDSD_DEPTH | DDSD_PITCH; header[3] = height; header[4] = width; header[5] = width*4; header[6] = depth; header[19] = 32; header[20] = DDPF_RGB|DDPF_ALPHAPIXELS; header[22] = 8; header[23] = 0xff0000; header[24] = 0xff00; header[25] = 0xff; header[26] = 0xff000000; header[27] = DDSCAPS_TEXTURE | DDSCAPS_COMPLEX; header[28] = DDSCAPS2_VOLUME; FILE * f = fopen( argv[1], "wb" ); if( !f ) { fprintf( stderr, "can't create: %s\n", argv[1] ); return 1; } fwrite( header, 4, 32, f ); fwrite( buf, 1, width*height*depth, f ); fclose( f ); fprintf( stderr, "wrote %s\n", argv[1] ); return 0; }

What is the name of the instructions to move data from one location in memory to another location in memory?

hey if its in the context of strings we can use string manipulation functions like strcpy(). in microprocessors we use rep movsb to move data from one memory location to other.

Trending Questions
What is 2-opt local search algorithm? Write a program to implement stack in openGL? What is the algorithm for finding the prime number 1 and 100? What is the difference between a program assistant and program specialist? What is the difference between a process and thread? Why you cant play game on your laptop it seems 3D software not installed? How do you display the menu using the assembly language programming? I am making a C plus plus program for a programming class that takes in 5 grades for 7 students averages them gets a letter grade and displays it all in a table How do you set up a table for variables? What are the disadvantages and advantages of prototyping over system development life cycle? Can you still make money by creating a software and selling it on the Internet? What is a readers writers problem without deadlock and starvation? Best certification course RHCE or MCSE? What is a mathematics industry program? What are the differences between thread and function in C plus plus? It you use a counter to control a loop for ten repetitions and express the condition as WHILEcounter 10 which one what is true A counter is a constant and 10 is a constant counter is a con? Write a sed command that swps first and second words in each line in a file unix and shell programming? The URL Address data type can store text that can be used as a hyperlink address? What is the storage capacity of register? What does stm stand for? You have developed a rabbit ftp server program in dynamic c whenever you tried to dowload a file from server program you are getting the error as input string is not in the correct format?