answersLogoWhite

0

📱

C Programming

Questions related to the C Computer Programming Language. This ranges all the way from K&R to the most recent ANSI incarnations. C has become one of the most popular languages today, and has been used to write all sorts of things for nearly all of the modern operating systems and applications. It it a good compromise between speed, power, and complexity.

9,649 Questions

What are variable length arrays in C99?

An array whose length is not known in compilation time.

int testfun (int n)

{

int varr [n];

...

}

it is ok in C99, invalid in earlier versions.

What is a special language used to write computer programs?

SQL which stands for Structured Query Language The term you are looking for is programming language.

How we can solve the equation for two or three unknown in C programming language?

Just as you would do it manually, I mean there is no predefined 'solve_equation' function in C.

What is getche command in c language?

There are no commands in C.
TurboC has got a function called getche, read the help (type into the editor: getche +)

What types of analyses use case study data?

Case studies are used for the following analyses: industry analysis; product/service analysis; financial analysis; and management analysis.

What is string library functions syntax?

String library function is one which is used to perform an operation in C-programming,without which library functions likestrlen(),strcp(),strcmp(),strdup(),strrev(),etc..,.can be performed

What is type equivalence in programming language?

Type equivalence occurs when two variables are of the same type. For example, if both variables are int (integer variables), they are of equal types. Equivalence can also occur with two different types that are compatible with each other.

What was the main function of the KGB?

the main fucntion was to kioll ishmael jenkins and all of his follers

What is C program execution life cycle?

C Program Development lifecycle!

C Program Development Cycle

A C program typically passes through four steps of development.

The solid lines show inputs into each step of the development cycle. Compile and Linkage Editor operations are performed by the C for AIX product, which also lets you specify what optional outputs are produced. Optional outputs are shown in the diagram by the broken lines. Descriptions of the steps follow below:

Design and Code

Involves designing a program to meet a specified requirement, and creating the programming language text files that will comprise the program source.

Compile

After checking for syntactical correctness, converts the programming language source files into machine readable instructions, where C variables are associated with memory addresses, and C statements are turned into a series of machine language instructions. The compiler can produces various forms of output, depending on the compiler options selected.

Linkage Editor

Links compiler output with external modules requested by the compiled program. C programs can use routines from C libraries or any object or archive file from the IBM XL family of languages. C programs can also use modules produced by the current or previous compilations. As well as linking the external modules, the linkage editor resolves addresses within the object module.

Run and Test

This stage can be both the final step in program development, or it can be an intermediate point in the program design and implementation process. A program's design commonly is further refined as a result of information gathered during testing.

Does Percentage belong to interval continuous data type?

Yes it is because it is a measurement of something usually entering into decimal figures and cannot be simply counted.

How do you solve autoit error subscript used with non-array variable?

A autoit error subscript means that a folder or subfolder cannot be found or registered. In order to fix this you either need to find a professional or edited the script to make sense so that the folder can be found.

Write abstract class in c plus plus?

An abstract class is any class definition that contains at least one pure-virtual function.

class AbstractClass

{

public:

virtual void DoSomething()=0; // Pure-virtual.

};

What is another name for bubble sort?

Bubble sort is also known as sinking sort.

What is database environment?

The database environment refers to the components inside a database. Some of these include hardware, software, data, as well as the procedures.

What is a c-code to implement heapsort?

Heapsort(A) {

BuildHeap(A)

for i <- length(A) downto 2 {

exchange A[1] <-> A[i]

heapsize <- heapsize -1

Heapify(A, 1)

}

BuildHeap(A) {

heapsize <- length(A)

for i <- floor( length/2 ) downto 1

Heapify(A, i)

}

Heapify(A, i) {

le <- left(i)

ri <- right(i)

if (le<=heapsize) and (A[le]>A[i])

largest <- le

else

largest <- i

if (ri<=heapsize) and (A[ri]>A[largest])

largest <- ri

if (largest != i) {

exchange A[i] <-> A[largest]

Heapify(A, largest)

}

}

What are the functions of language?

Language has a variety of functions. Some of these include apologizing, asking a question, as well as expressing one's personal wishes.

Explain the allocation of memory cells when a function is called?

When you call a function, the stack pointer is adjusted to cater for the function's arguments (if any), the caller's return address (mandatory), the function's local variables (if any) and the function's exception handlers (if any).

What programs and applications run inside a window that can be opened closed or re sized?

All programs and applications run in a window, including console applications. However, with non-console applications, the programmer can choose the style of window by turning certain features on or off, such as whether it has a border or not, whether it is sizeable or not, whether it can be moved or not, and so on. In some rare cases, the programmer might expose some of these style options to the user so they can choose their own style of window.

How do you write c program of moving average?

double movingaverage (double raw, double smoothed, double alpha) {
return smoothed / (1.-alpha) + raw/alpha;
}