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

Are c and c cages better than regular cages?

yes because it provides more space from the guinea pig to roam.

What is Stepwise refinement techniques in data structure?

Step-wise refinement is a technique for software development using a top-down, structured approach to solving a problem. It allows the developer to use a controlled method of developing an algorithm that will eventually solve a given problem.

Basically, step-wise refinement involves the use of a generalized approach to a problem, perhaps written in pseudo-code. The next step would be to fill in one of the holes in the code. The pseudo-code describes a general, non-specific way to solve the problem deferring the actual decisions until last minute. That way the developer can assign place-holders in the logic until they are actually needed.

Then, each step involves the use of refining (adding the logic) a step in the development of the algorithm to make it more specific, doing so one step at at time.

When everything has been refined you have a complete program; however, it takes multiple steps (step-wise refining) to get to that point where a complete, syntactically correct program emerges.

Where can one learn more about printf?

Wikipedia offers a great article about printf. They even provide samples of coding that is used in programs. If further assistance is needed try the website C Plus Plus.

What is gopher in C programming?

Computer experts suggest between 1992 and 1996, gopher was primarily used to organize files retrieved from servers around the world and organize them in a hierarchical fashion.

A c program which will remove all the spaces from a given string?

RemoveSpaces (char *str) {

char *new = str;

while (*str != '\0') {

if (*str != ' ') *(new++) = *str;

str++;

}

*new = '\0';

}

What is the maximum value that can be stored in an integer in c?

if it is a signed int the the range is -32768 to 32767


if its unsigned then 0 to 65535

What are the names of female singers that beginning with the letter j k m or n?

J:

  • Janet Jackson
  • Jessica Simpson
  • Joan Jett
  • Joni Mitchell
  • Jodee Macina
  • Jewel
  • Jordan Sparks
  • Jennifer Hudson
  • Janis Joplin
  • Joan Baez
  • Joan Armatrading
  • Jane Wiedlin (one of the Go Gos)

K:

  • Katy Perry
  • Kelly Clarkson
  • Karen Fairchild (county group, Little Big Town)
  • Kimberly Schlapman, (also in Little Big Town)
  • Kelly Pickler, Idol finalist
  • Karen Carpenter
  • kd lang
  • Katy Tunsdall (Black Horse and a Cherry Tree)
  • Katharine McPhee, Idol finalist
  • Katrina Leskanich, Karina and the Waves
  • Kim Carnes

M:

  • Madonna
  • Mary J. Blige
  • Mariah Carey
  • Miley Cyrus
  • Michelle Branch
  • Melissa Ethridge
  • Macy Gray
  • Marvis Staples (#56 on Rolling Stone's top 100 singers of all time)
  • Maxine Nightengale
  • Miranda Lambert
  • Mary Chapin Carpenter
  • Mary McGregor
  • Melba Moore
  • Marilyn McCoo
  • Maureen McGovern
  • Melissa Manchester
  • Martina McBride
  • Mary Travers (Peter, Paul and Mary, 60's trio)
  • Martie Maguire, The Dixie Chicks

N:

  • Natalie Merchant
  • Natasha Bettingfield
  • Norah Jones
  • Nelly Futato
  • Natalie Maines. The Dixie Chicks
  • Nancy Wilson, the rock group Heart

Please someone explain you command line argument in C?

Command Line Arguments---- I am trying to explain each word one by one
Command ------perform specific task
ex. When CMD is typed in run window and then press ok button then open a black screen that is called command prompt.
Command Line ------on command prompt where command is supplied that is called command line.
using command prompt dos commands are executed and java program is also executed using command prompt.
for executing java program command is supplied with given syntax
java java_class_name argument1 argument2.........
Java--- is a command
java_class_name ---name of java file which you want to execute
argument1 argument2 --- are the values passing to java application from out side
these argument1 argument2 are stored in string array argument of main method

Can you run programs compiled with Turbo C on Linux?

Turbo C cannot compile native Linux binaries, only programs for MS-DOS. MS-DOS applications can be run on Linux through a variety of methods, including DOSEMU, DOSBox, QEMU, Bochs, and VirtualBox.

Why do compilers convert infix expressions to postfix?

people almost exclusively use infix notation to write mathematical expressions,

computer languages almost exclusively allow programmers to use infix notation.

However, if a compiler allowed infix expressions into the binary code used in the

compiled version of a program, the resulting code would be larger than needed and very

inefficient. Because of this, compilers convert infix expressions into postfix notation

expressions, which have a much simpler set of rules for expression evaluation.

Postfix notation gets its name from the fact that operators in a postfix expression

follow the operands that they specify an operation on. Here are some examples of

equivalent infix and postfix expressions

Infix Notation Postfix Notation

2 + 3 2 3 +

2 + 3 * 6 3 6 * 2 +

(2 + 3) * 6 2 3 + 6 *

A / (B * C) + D * E - A - C A B C * / D E * + A C * -

Where as infix notation expressions need a long list or rules for evaluation, postfix

expressions need very few.

What kind of pattern is this A A C A A C A A?

There are different kinds of patterns for different processes. The pattern of A A C A A C A A is the pattern called a consensus pattern which is a pattern known for matching two random sequences.

How do you separate digits in c plus plus?

Repeatedly divide the number by 10 and store the remainder (the modulo).

By way of an example, if the number were 12345:

12345 % 10 = 5 (first digit)

12345 / 10 = 1234

1234 % 10 = 4 (second digit)

1234 / 10 = 123

123 % 10 = 3 (third digit)

123 / 10 = 12

12 % 10 = 2 (fourth digit)

12 / 10 = 1 (fifth digit)

This algorithm forms the basis of number reversals. The following function demonstrates the most efficient way of reversing any number in the range -2,147,483,648 to 2,147,483,647, inclusive.

int RevNum( int num )

{

const int base = 10;

int result = 0;

int remain = 0;

do

{

remain = num % base;

result *= base;

result += remain;

} while( num /= base);

return( result );

}

What sort of condition is oligohydramnios?

Oligohydramnios occurs when a pregnant woman does not have enough amniotic fluid. It can cause improper development of the fetus. It is not a healthy condition.

What is scalar data structures?

A scalar variable can hold only one piece of data at a time. So in C, C++ and Java scalar data types include int, char, float and double, along with others. Scalar variables of the same type can be arranged into ascending or descending order based on the value.

Prasangax

Define non standard data types?

In programming, non-standard data types can be anything; a model for a house, a person, a bank account, a galaxy. They all have in common that they are created through composition of basic built-in data types such as integers, strings or floating point data types.

To define non-standard data types, programming languages typically provide three to four language tools:

Arrays can combine multiple entities of the same basic or non-standard type into as larger new type. When an array is viewed as its own data type rather than a simple accumulation of variables, the whole is more than the sum of its parts: in the C programming language, for example, an array of bytes defines a string or characters.

Structures can combine multiple entities of the same or different data types into one record, from which all record members are accessible at the same time. For example, a student's record might hold the name and date of birth for a single student.

Unions can combine multiple entities of the same or different data types into one record, from which only one record member is accessible at any one time. For example, a union containing the key characteristic of a geometric shape might contain the number of edges of a polygon as an integer number, or a sphere's radius as a floating point variable. The programmer needs an additional method to determine whether this union ought to be interpreted as the edge-count or the radius.

Object-oriented programming languages also support classes. In simple terms, classes are structures which also contain functions, not only data. (Note this is a radical simplification. Classes and object-oriented programming have more to offer than glorified data structures.)