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

C program was introduced in the year?

c program was introduced in the year 1972 by Dennis Ritchie

No, it was the C language, not the C program.

What programming language is used for www.threadless.com?

HTML and javascript. While viewing www.threadless.com or any site for that matter. If you are using Internet Explorer, Click View->Source.

How many subscript or dimension of array are supported by c program?

The standard does not specify a limit, it is implementation defined. The practical limit on my system is 30 dimensions. You can easily determine the upper limit by instantiating a static array of char (the smallest data type), where each dimension is 2 (the minimum size for any dimension).

static char ch[2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2] = {0}; // ok

static char no[2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2][2] = {0}; // no can do!

Note that if you allocate on the stack (non-static allocation), the limit drops to just 19 dimensions.

Note also that a dimension of size 1 isn't an array. You can easily have hundreds of dimensions all of size 1 in an array, but there would only ever be 1 element in the entire array. Thus any dimension of 1 in any array (no matter which dimension) becomes redundant in terms of the array's size. For example, the following definitions are all exactly the same size:

char ch[3][2][1] = {0};

char ch[3][1][2] = {0};

char ch[1][3][2] = {0};

char ch[3][2] = {0};

What are the operations that can be performed using a pointer expression?

a. adding and subtracting the integer values

b. adding and subtracting the pointers

c. incrementing and decrementing the pointers

other than tis pointer operations include relational operations such as =,<,>.

What are the easy tips to learn programming language?

Well, whatever you do, you'll have to learn. The easiest way to learn some basics is to use a high level programming language such as, Perl, PHP, Ruby, Python etc.. (very long list).

Program in c string length in window using array?

size_t my_strlen (const char str [])
{
size_t i;

for (i=0; str[i]; ++i);
return i;

}

Write a pseudocode for a program that accepts two integers and substract 5 from the answer?

1. Accept the 2 numbers 2. Add the 2 numbers
3. Compare answer with 5
4. If answer is greater than 5 subtract with 5 else give a error message.

Why use loop in pipe rack?

For thermal expansion of the pipe, avoiding damage/clash to adjoining pipes.

Disadvantages of computers to students?

They quite often stop doing any homework, instead they just wait for someone from the net to solve their problems.

How do you create a browser based instant messenger without knowing any programming language?

You don't. It's not possible. Learn Visual Basic. It's not nearly as hard as most people expect it to be. The Meebo service allows you to access IM programs through the web. Try http://www.meebo.com/.

How do you send email from turbo c language?

You know I am also working on the same task and trying to find the solution of this problem.May be possible that in this we have to give all the steps or all the activity that we perform on the real time browsing. But in this also their is a problem that how you will add text compose.Although It's A tough Task but Don't Loose the hope.

What is Roots of equation?

The roots of an equation of the form y = f(x), are those values of x for which y = 0. If plotted on the coordinate plane, these are the points where the graph of y against x crosses (or touches) the x axis.

What is a statement that seems self-contradictory but in reality expresses a truth?

A statement that seems self-contradictory but in reality expresses a truth is called a paradox.

What is an array of factors?

An array of factors is a rectangular visual using the factors of a number. An example would be the number 12. The factors are 3X4, 1X12, and 6X2. Making an array would be taking these numbers and drawing a picture of squares with width of 6 and height of 2. Or width of 3 and height of 4. Same with width of 12 and length of 1.

Average cost of Nursing program?

The average cost for a nursing program can be over $14,000 for a public school and over $30,000 for a private school.

What is a constant in real data type?

There are many constants, starting from number of seconds in minute, hour and so on, number of days in leap year and not leap, well known from math PI = 3.1415..., all physical and chemical constants and so on.

Objective of three level architecture in simple language?

  • All users should be able to access same data.
  • A user's view is immune to changes made in other views.
  • Users should not need to know physical database storage details.
  • DBA should be able to change database storage structures without affecting the users' views.
  • Internal structure of database should be unaffected by changes to physical aspects of storage.
  • DBA should be able to change conceptual structure of database without affecting all users.

If the degree of a node is 0 then the tree is called?

This would be just a single node, since no edges (you can think of degree as the number of edges connected to a node). If you are talking about the in-degree, or out-degree of a node being zero, this can happen many times in a directed graph (in-degree = # edges going IN to node, out-degree = # edges going out...).

What is the advantage of using a sentinel?

Primarily it allows implementation to be shifted from the list to the nodes themselves. Generally this is more efficient because the list's sole responsibility is the sentinel (which is guaranteed to exist so long as the list is in scope) to which it delegates all responsibility with regards the actual nodes. A tail sentinel improves efficiency further by ensuring the head sentinel node never points to NULL.

Head and tail sentinels are most useful in sorted lists. When data is added to the list, the list immediately passes the data to the head node. When the head node receives data it immediately passes it to the next node, and sets its next node to the return value. The data passes from one node to the next until it reaches a node that contains larger data, or it reaches the tail sentinel. Either way, a new node is created such that it points to the current node, and returns the new node to the calling node which updates its next node to point to the new node. All previous nodes remain unchanged by returning themselves to the calling nodes, all the way back to the head.

This is more efficient than using a non-sentinel list. With this implementation, the list itself must traverse the nodes (if any) to locate the insertion point and then update the links between the nodes. This is because if there are no nodes, the list must handle the insertion itself. Therefore it must handle all insertions, nodes or not. in other words, sentinel nodes shift the responsibility for insertion to the nodes themselves. Since traversal is required anyway, it makes sense to reduce the level of indirection and let the nodes sort themselves out, rather than forcing them into order by a class that has no inherent knowledge of the data it is trying to insert. Data sorting is the responsibility of the nodes that contain it, not the list itself.

How do you do a reverse single crochet?

Reverse single crochet means to turn the item the opposite way you were crocheting and single crochet as normal-just in the opposite direction. For instance if you crochet from right to left as normal, you would chain one, turn the item around so you are facing the opposite side (the 'wrong side') and single crochet around. The stitches will then face the opposite way from the rest giving it a decorative edge.

What is a expansion loop?

a complete loop installed in a pipeline to mitigate the effect of expansion or contraction of the line.