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 prototype for menu function takes no arguments but returns a char value?

char SomeFunction();

This has nothing to do with menu functions. It is a straight C/C++ answer. Menu functions depend on the platform API, not on C/C++.

Where was James Thompson Marshall?

James Thompson Marshall was a railway and mechanical engineer. Originally employed at the Oxford Steam Plough Company in Cowley, Oxfordshire, he moved to Hunslet, Leeds, West Yorkshire, England, continuing his career at Boyne Engine Works. He spend his career, however, in England.

What does the CCP after the PA-C mean?

PA-C means Certified Physician Assistant, CCP means Certified Clinical Perfusionist. A person with both credential use PA-C, CCP after his name.

What are Three programming languages used in games design development one language from procedural paradigm object oriented and visual?

The language you use depends on the type of game you wish to develop. C++ is by far the most popular language due to its speed and flexibility and is the language of choice for most consoles (particularly XBOX and PlayStation, both of which require licenced hardware). Java can be used for less demanding games while scripted languages are ideal for browser-based games.

What is Normalization of pointers?

The 8085 had a 16-bit address bus thus it could address a maximum of 64KB of memory (2^16). The 8086 had a 20-bit address bus and could therefore address a maximum of 1MB of memory (2^20). To maintain compatibility, segmented memory was introduced, such that the segment and offset were stored in separate 16-bit registers. In order to perform 20-bit pointer arithmetic upon the 8086, the segment and offset had to be normalised by the compiler to produce a valid 20-bit address. This was achieved by left-shifting the segment by 4 bits and then adding on the offset.

The 8086 also introduced the concept of near, far and huge pointers. A near pointer only stores the offset while far and huge pointers store both the segment and the offset. The only practical difference between far and huge pointers is in how pointer arithmetic works. With far pointers, only the offset is affected whereas with huge pointers, both the segment and the offset are affected.

How do you code a simple C plus plus program to remote shutdown computers?

Any code that remotely controls another computer is far from simple. The simplest method would be to write a client-server application, where the client runs as a service awaiting a shutdown instruction from the server. However, it goes without saying that a network administrator would take a dim view of employees remotely shutting down other employee's computers.

What is the difference between brute force search and heuristic search?

Brute force is a systematic approach. Heuristics use educated guesses, rules of thumb and common sense.

What are the benefits of matrices in programming?

Matreses like the temper pedic and the sleep number bed are not as good as they say. The temperpedic is filled with seemingly soft foam but its actually tight and feels bad. The sleep number bed is electronic and like all electronics can start a fire but your just sleeping on this fire.

What is link section in c program?

the link section provides instruction to the compiler to the link function from the system library.

Parameter of rectangle equal parameter of triangle?

I hope you want to know the Perimeter.

Perimeter is the total length of the boundary of the region bounded by a shape.

For a rectangle it is the sum of the 4 bounding sides, or 2*(L+B), where L is Length of the rectangle and B is Breadth of the rectangle.

For a Triangle it is the sum of the 3 sides.

If you consider an equilateral triangle. By property the 3 sides of an equilateral triangle are equal. Hence the Perimeter of an equilateral triangle is denoted as;

3*a, where a is the length of one of the sides of the triangle.

It is possible that the perimeter of a rectangle is same as that of many different types of triangles. We can formulate a relationship for a special case where the perimeter of a rectangle is equal to the perimeter of an equilateral triangle;

P(R) = P(ET), P(R) is perimeter of rectangle and P(EQ) is perimeter of Equilateral triangle.

P(R)=2(L*B) = P(EQ) = 3*a;

hence, a = (2/3)*(L*B) = P(R)/3.

i.e., the sides of the Equilateral triangle are one thirds of the perimeter of the rectangle.

What type of business would use a data center?

Almost all businesses one way or another use a data ceter in some fashion. Data centers are where almost all servers that operate on the internet are located. This allows for 24 hour connectivity and typically very high bandwidth internet connections. It's considered normal for even the smallest business to have some kind of web presence, that web presence will be located at some kind of data center.

Assume int t 1 2 3 4 What is tlength?

I'm assuming you are asking about an Array with {1,2,3,4} then the length would be the number of elements: 4.

3 Write the algorithm of inserting an element at middle of a linked?

theory part to how u can insert element at middle of link list ?

What is cobol and c language?

Common Business Oriented Language/ COBOL is widely used programming language by businesses. While C is a general purpose programming invented by Dennis Ritchie.

What are LimeWire's Statics?

something to copy songs to cell phones,mp3 players,itunes,ipod and music players

Why does not use FIFO in stack?

A FIFO, or First In First Out is a queue.

A stack is a LIFO or Last In First Out.

When did Dennis Ritchie create C?

He worked on it with BellLabs throughout the 1960s.

Do records fall under linear or non linear data structures?

A record is a compound data structure composed of heterogeneous fields. The memory layout of an individual record is linear insofar as the fields are allocated contiguously, however a group of records is not necessarily linear. It all depends upon how the records are linked together and that's ultimately defined by the data container. Generally speaking, arrays and lists are linear data structures while graphs and networks are non-linear.

What are the arithmetical operations in a computer?

An "algorithm" is just a list of step-by-step instructions.

For example, here's an algorithm for adding two numbers:

  1. Equipment needed: An area of clear ground and a pile of small stones beside it.
  2. Count stones equal to the first number to be added.
  3. Put the counted stones in the center of the clear ground.
  4. Count stones equal to the second number to be added.
  5. Add the counted stones to those already in the center of the clear ground.
  6. Count the entire pile of stones in the center of the clear ground.
  7. The count is the sum of the two numbers to be added.

How do you analyze a program?

Assuming you're meaning to check if the program works - run it with some test data that you know what the solution should be be if the program works correctly. If you get the expected result, the program is fine - if not - it needs de-bugging.