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

Why goto in C language is called a jumping statement?

Because it forces the program sequence to go to another place in the program, just as if jumping across somewhere. This goto is found in most programming languages.

What is string array?

A string array is an array whose contents are strings.

An array is when you use a single variable names to store different data items. The data items are distinguished by a number (sometimes by more than one).

A string is a data type used to store texts. It may contain letters, digits, or other symbols.

A string array is an array whose contents are strings.

An array is when you use a single variable names to store different data items. The data items are distinguished by a number (sometimes by more than one).

A string is a data type used to store texts. It may contain letters, digits, or other symbols.

A string array is an array whose contents are strings.

An array is when you use a single variable names to store different data items. The data items are distinguished by a number (sometimes by more than one).

A string is a data type used to store texts. It may contain letters, digits, or other symbols.

A string array is an array whose contents are strings.

An array is when you use a single variable names to store different data items. The data items are distinguished by a number (sometimes by more than one).

A string is a data type used to store texts. It may contain letters, digits, or other symbols.

How do you write the code for generating Fibonacci search in C programming?

Use a lookup table. The first two elements are 0 and 1 and each subsequent element is the sum of the preceding two elements. The table needn't be very large as there are only 43 Fibonacci numbers in the range 0 to 1 billion. If you need larger numbers, use long doubles.

What are the errors in object oriented program?

In Java, errors that arise during the execution of the program are more formally referred to as Exceptions. Exceptions can be handled using try catch blocks. Here is an example :

try {

int answer = 42 / 0 ;

} catch ( ArithmeticException e ) {

e.printStackTrace();

}

What is the difference between stack and heap memory in C?

  • stack is memory allocated for temporary variables used by subroutines
  • heap is memory allocated for long term data structures (e.g. linked lists, trees) that are likely to change size

Both are forms of dynamically allocated memory (i.e. allocated/deallocated at runtime as needed), but the allocation/deallocation method and their place in physical/virtual memory are different

Statically allocated memory (i.e. allocated at compile/link time) is used for variables and data structures that must exist as long as the program is running and cannot change in size while the program is running.

What is the notation for space in c coding?

Space is invisible in itself, so use quote-marks before and after it: ' '

Why String data type cannot be used as built-in data type in C?

Because it isn't a built-in data-type in C. Other examples that aren't built-in data-types: complex numbers, binary trees, associative-arrays.

Write a Program in c language to find the LCM without using functions?

You're supposed to do your homework yourself. (Mind you, you have to hav at least one function called main.)

What is statement terminator?

Semicolon, in some languages. Line-end in some others.

How do you draw pie slice in c graphics?

using pie slice function akwinder can draw monkey which exactly looks like her.

What restriction must be satisfied by all of the data items represented by an array?

An array is a group of related items that share a common name.All these elements are stored consecutively.

An array must be declared before its use in the program.

Array size must be specified

All Array elements must be assigned to any value for assignment the value.

Partial initialization of elements of an array is not allowed.

Size must be integer constant enclosed within square brackets

The name of the array indicates starting address of an array.

Each individual element of array is accessed by a subscript.

What does 4 equals c in a c c?

(4 gallon) x (16 cups per gallon) = 64 cups

[ This is the right answer]

Advantages of algorithm over flowchart?

what are the advantages of algorithm over flowchart

algorithm is a step by step procedure of a particular program either in pure english programming language or in english programming style.

while a flowchart is a pictorial representation of an algorithm.

why algorithm is better? the answer is very simple, as algorithm are concise and compact. it gives the basic idea behind the program.

why flowchart is better? the answer to it is...being graphical it is easy to understand th methodology of program and can be reviewed as well as corrected easily.

When you choose iterative or recursive algorithm?

If you cannot find any iterative algorithm for the problem, you have to settle for a recursive one.

How do you draw a square using line command?

Line (x1, y1, x2, y1);

Line (x2, y1, x2, y2);

Line (x2, y2, x1, y2);

Line (x1, y2, x1, y1);

Turbo C plus plus keywords?

Turbo C++ keywords are the same as C++ keywords. The language remains the same, only the implementations differ. The Turbo C++ implementations were standards-compliant at the time of their release, but the product is no longer supported.

How can you make c and c plus plus language compatible with 64 bit operating system?

Language definitions (specifications) are independent of any Operating System. That is, neither the C nor C++ language specification has any dependence on a specific Operating System's features or the underlying hardware platform.

However, when implementing a C or C++ compiler on a specific Operating System and hardware platform, a variety of choices must be made. The Compiler implements the C or C++ language specification. Those specifications often give the compiler a choice in how to allow a certain feature to behave.

The most common choice is the default size of and Int and a Pointer. Neither the C++ nor C language require a certain specific size, and thus, compiler designers are free to chose.

Where does DECA conduct is programs?

As a cocurricular organization, DECA is an integral part of classroom instruction--a vehicle through which students learn marketing and management and are motivated to succeed.