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 is data dictionary of c plus plus?

A data dictionary is structured data about data (metadata), typically employed by a DBMS, either passively (requiring manual, independant updating), or actively (automatically updated alongside and prior to DBMS updates). Data dictionarie's don't really apply to the C++ language as such, but you can model a data dictionary using C++ wherever you need structured data about data within your database programs.

Why does your escort jerk violently while accelerating when it runs well most of the time?

This could be a lot of things. It is hard to say for sure with out seeing your car. 1. It could be that one of the plug wires is damaged. 2. Bad O2 sensor. 3. Could be that your fuel injectors need to be cleaned. 4. If you have an older car that has a throttle body injection system or a carburator, you will have a distributer cap. If there is moisture in it, your car will run this way. However, the moisture usually will evaporate and the problem will go away. This is probably not your problem. I would think that this probably has something to do with fuel getting to the fuel injector system or something else in the fuel system. I have had all of the above problems, so I know that these things could be your problem. The easiest thing to do to find out where the problem lies is to go to an automotive store and ask them to do a computer diagnostics on your car. A lot of stores offer this service free of charge. A mechanic will charge you for this service. A diagnostic will tell you where the problem lies.

What is the meaning of near and far declaration in microprocessor programming using C?

Programs that are loaded into memory typically have several segments associated with them: the Code Segment (CS), the Stack Segment (SS), the Data Segment (DS), sometimes an Extended Segment (ES), and almost always a Block Started by Symbol (BSS) segment. This question requires that we focus only on the Code Segment (CS). The CS is a segment of memory that contains some of the instructions that are required for the program to execute. If this segment is not large enough to contain the whole program then the program can be loaded into different segments. Such a segment may be 64Kb in size (although the size may differ). Instructions located in these segments are referred to by their offset from the start of the segment, and not by their absolute location in memory. Thus, in order to locate a certain instruction, we need the segment's starting address, and the offset of the instruction in that segment. Whenever a branch (jump, goto) takes place which refers to an instruction that is located in another segment, it is known as a far jump, conversely whenever a jump refers to an instruction that is located in the same segment, it is known as a near jump. The difference referring to the modication of the CS register which contains the address of the current Code Segment for the current running program.

How memory space is occupied by union variables in C programming language?

A union is an aggregate of members that share the same memory address. The size of a union is determined by the largest member.

Write a C program to accept roll numbers and names of 10 student using array and display the names?

Well, we're not going to do it for you.
There's some example code and tutorials at http://www.cplusplus.com/doc/tutorial/ . It's for C++, but the code is simple enough that it shouldn't make a difference. Adapt that, and it should do exactly what you want.

What is the binary of the dot decimal 156.162.179.181?

The 32-bit binary value of the dotted decimal IPv4 address 156.162.179.181 is 2,627,908,533. This is (156 x 224) + (162 x 216) + (179 x 28) + (181 x 20). Parenthesis shown only for clarity.

What is the main function of Cladodes?

The leafs reduces its size on the stem which increases the surface area to volume ratio of the leafs, maximising the photosynthesis progress, at the same time with the small surface area per leaf, prevent excess water loss.

The other reason might be that decreasing the volume of plant itself somehow benefit on reducing water loss as water may be simply under going osmosis along the way in plant.

Not sure if this is right, can not find information somehow

How will you initialize a three-dimensional array thread 323. How will you refer the first and last element in this array?

The first element will be 0,0,0 and the last will be 2,1,2.

It's always best to think of multi-dimensional arrays in terms of a one-dimensional array. That is, a 3x2x3 array is really a one-dimensional array of 3 elements (the first dimension), where each element is a 2x3 two-dimensional array, and where each of those 2x3 arrays is a one-dimensional array of 2 elements (the second dimension), where each element is a one-dimensional array of 3 elements (the third dimension). Thinking in these terms makes it much easier to visualise arrays with 4 or more dimensions.

Arrays are always allocated contiguously, one element after the other. So the memory layout for your three dimensional array is as follows (where 000 means element 0,0,0):

{{000, 001, 002}, {010, 011, 012}}, {{100, 101, 102}, {110, 111, 112}}, {{200, 201, 202}, {210, 211, 212}}

The curly braces are merely notational, but they help to visualise the layout more clearly, dividing the memory into three groups of two groups of three elements. However, if we stack the three main groups one above the other it will be much easier to see visualise the structure:

{000, 001, 002}, {010, 011, 012} {100, 101, 102}, {110, 111, 112}

{200, 201, 202}, {210, 211, 212}

If you look at each row you can clearly see that the first digit in each element is the same throughout that row. However, each row is really a two-dimensional array (of 2x3 elements), so each row is really a 2x3 table. The top row is therefore table 0, the middle row is table 1 and the bottom row is table 2. Let's look at table 0 more closely:

Table 0:

{000, 001, 002}, {010, 011, 012}

Now let's stack the table's 2 elements so we can see the table more clearly:

Table 0:

{000, 001, 002}

{010, 011, 012}

Now the rows are identified by the second digit, where the top row is row 0 and the bottom row is row 1. Each row has three elements and the third digit identifies the column of that element (0, 1 or 2). Here's the complete structure:

Table 0:

Row 0: {000, 001, 002}

Row 1: {010, 011, 012}

Table 1:

Row 0: {100, 101, 102}

Row 1: {110, 111, 112}

Table 2:

Row 0: {200, 201, 202}

Row 1: {210, 211, 212}

From this we can clearly see that we can refer to any individual element through a table identifier (0, 1 or 2), a row identifier (0 or 1) and a column identifier (0, 1 or 2). Therefore to initialise this structure, we need to cycle through each identifier in turn. Here's how we do that using pseudo-code:

given array A [3,2,3]

for each table in 0 to 2

for each row in 0 to 1

for each column in 0 to 2

initialise A [table, row, column]

next column

next row

next table

What is the company called that has the logo c with parentheses on the top and bottom of the c?

i am not shure but i know for sure it is a makup company because i have bronzer from it

Can array subscript be -1?

No, array subscripts cannot be -1 in most programming languages. Array indices typically start at 0, meaning valid subscripts are non-negative integers. Using a negative index like -1 would usually result in an error or undefined behavior, depending on the language being used. Some languages, like Python, allow negative indexing to access elements from the end of the array, but this is not the case for all languages.

What types of politicians are there?

Prime ministers Ambassadors Presidents thats all I can think of! = Types of Politicians in a Democratic Government. = Principled Politician: Believes that the rules and regulations set forth by the government should reflect certain principals. They may be liberal or conservative, capitalistic or socialistic, that doesn't matter. He believes that his job, the job of the Government, is to serve the public interest the best that it can.

Power Seeking Politician: Has no principled beliefs. He is in politics to gain personal power and wealth. He can change sides as necessary to stay important. To him the government is nothing more that a tool to be used for personal gain.

Patsy Politician: He has no real principals of his own. He is not personally concerned with anything but is easily swayed by flowery speeches into supporting the cause of others. He likes the attention of government service and is many times oblivious to the consequences of his actions.

Pretender Politician: He is not in government to serve the public interest or to gain power. He does not support a democratic form of government but can not change the government from the outside. So he pretends to serve the people in order to affect change in the system of government it's self. To be sure, the end goal is not the welfare of the public, but the conquest of a nation. It might be noted that the characteristics of the Power Seeker and Patsy make them susceptible to being used by the Pretender to further his goals.

What are the components of c language?

Compiler and Programmer these are the two components of the C language

What was a J C Higgins 103.18 model rifle used for?

It's probably best used for plinking. I just bought and restored one of these guns and it is very accurate with just iron sights so I plan to use it to hunt squirrel.

What is the importance of the Fibonacci series?

The Importance of Fibonacci's series is that it helps people find more patterns 1+0=1

1+1=2

1+2=3

2+3=5

5+3=8

etc.

C program to check given two numbers are amicable or not?

Take the numbers, factor them, then make a list of all the proper divisors and add them up.
To factor use a Computer Algebra System like Maple, Mathematica or Axiom, if you like.

http://en.wikipedia.org/wiki/Amicable_number
http://en.wikipedia.org/wiki/Divisor
http://axiom-wiki.newsynthesis.org/uploads/chapter-9.13-26.xhtml#sec-9.22

What is Flowchart to find the factorial of number?

The link has a picture of the flow chart. Too hard to put it in a readable format on Answers.com

http://en.wikipedia.org/wiki/File:FlowchartExample.png

What does object oriented and procedural mean in programming language?

procedure oriented means program will be execte in step by step procedure,when comes to object oriented means every thin can be represents the object a step[ step procedure doesnot follow

How do you add printer in turbo C plus plus?

Adding printers is a function of the operating system. The operating system should also provide facilities that allow you to enumerate all printers registered with the operating system.

Array implementation of priority queue?

the priority queue is which depends on the data stored.in which their priority is maintained by checking the forth coming values stored in the queue

Difference between binary search tree and heap tree?

A binary search tree uses the definition: that for every node,the node to the left of it has a less value(key) and the node to the right of it has a greater value(key).

Where as the heap,being an implementation of a binary tree uses the following definition:

If A and B are nodes, where B is the child node of A,then the value(key) of A must be larger than or equal to the value(key) of B.That is,

key(A) ≥ key(B).

How do you write a mind reader programme in c?

One of the first things a budding programmer needs know is that you cannot program something that you do not know.

Good luck with the mind reading.

Does float data type accept negative values?

Of course, you should have tested:

float x= -1.0;