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

How do you tell if your vents are blowing coolant or if its just moisture?

If it is coolant, it will have a heavy smell. Condesation is very common especially in humid climates. Another way to tell is feel. If the liquid from the vent feels oily, it may be coolant.

What is a 'source language'?

A source language is the original language in an interpretation. For example, if I speak a phrase in English and it is translated into Spanish, the Source language is English. The target language is Spanish.

What is logic to convert amount in figure from Rs in programming c?

c- c++ a language for development started in cambridge I believe

regards

Mark Folan

07931595124

What are macro languages and its features?

A macro is a fragment of code which has been given a name. Whenever the name is used, it is replaced by the contents of the macro. There are two kinds of macros. They differ mostly in what they look like when they are used. Object-like macros resemble data objects when used, function-like macros resemble function calls.

  • Give symbolic names to constants, so global changes need be made in only one place.
  • Conditionally compile blocks of code.
  • Abbreviate or customize the language of frequently used blocks of coding where a subroutine call is not desired.
  • Improve readability of the code to make its structure and purpose more obvious.

What is IMP in Objective C?

IMP is a pointer to a function returning an id and taking following parametres 1) id 2) SEL 3) variable arguments ... for eg; typedef id (*IMP)(id self,SEL ,...); IMP is used to call the objective c functions at runtime. To get an imp use the syntax : IMP myImp = [myObject methodFor:mySel];

Why is a 1997 Chevrolet Venture stalling at idle and immediately after restart only from time to time in wet weather but after the engine warms up runs just fine?

Im not positive but it may be the air intake is so low to the ground that when it rains its sucking the water up into the intake and drowning the air filter and sucking water into the fuel system. Hope that helps!

when was last time it had a tune up? change plugs and wires.

What is fundamental algorithm?

Algorithm It is the combination of sequential steps (these steps can be calculations, data processing, and reasoning tasks) use to resolve a problem in a very simple and efficient way. It is designed most efficiently that it can be expressed within a finite amount of space and time. we can implement it in any programming language. Properties of an algorithm : following are the main properties of an algorithm:- An algorithm must have a unique name. It should have explicitly defined sets of inputs and output. Algorithm must be in sequential order with unambiguous operations. It must have some endpoint, i.e., it halts in a finite amount of time.

Visit for basic information about algorithms----> geeksjournal.in/2020/01/20/introduction-to-design-and-analysis-of-algorithm/

What is the difference between pre defined functions and user defined functions?

Predefined functions are functions that have been written and we can use them in our C++ statements. But we must know how to use each of these predefined functions.

What type of information should be specified in the block comment at the very beginning of the program?

What type of information should be specific in the block comment at the very beginning of a program? Provide a list of information.

The application where c language can't implemented but it is done by c plus plus language?

Any C++ application that makes use of classes cannot be compiled in C since C is not an object-oriented programming language. The code may be altered to eliminate the classes, but if the classes are designed with complex hierarchies then the transition could prove quite difficult to implement.

What are the key points you need to remember about switch case statements?

Switch case statement:

  • The switch case statement is a better way of handling multiple choices, it is similar to 'if-else statement' and is a better way of controlling branching behavior in a program.
  • Switch statement tests whether an expression matches one of the case.
  • Each case is labeled by one or more integer constant expressions. If a case matches the expression value, execution starts at that case.
  • Default case is also present which is optional and it is executed only if none of the other cases are satisfied.
  • Each case is terminated by break statement which causes immediate exit from the switch statement
  • If you miss the break statement in one of the Switch conditions, all the subsequent conditions may also get executed

Write the algorithm for in order traversal?

Inorder(p)

{ If p = nil return;

Inorder(p.left)

process(p.data)

Inorder(p.right) }

What is the ASCII character '?

It is the apostrophe or single quote character ('). It has the ASCII code 0x27 (39 decimal).

What is an Array dimension?

An array dimension tells us the number of elements in an array:

int x[50]; // an array of 50 integer elements

Array elements are anonymous so we cannot refer to them by name. The array name, x, refers to the start of the array and thus to the first element in the array but it's important to realise that x really is a reference and not a named variable:

x = 42; // error! cannot assign a value to a reference

In order to assign a value to an array element you must first dereference that element:

*x = 42;

The first element of an array is always offset 0 elements from the start of the array, so we can also use pointer arithmetic to dereference the address:

*(x+0) = 42; // assign to the 1st element

By changing the offset index we can refer to any element in the array:

*(x+10) = 42; // assign to the 11th element

Dereferencing array elements using pointer arithmetic is a bit verbose and cumbersome, however we can use the array suffix operator to make things a little easier for both the programmer and the reader:

x[0] = 42;

x[10] = 42;

As far as the C compiler is concerned, x[0] really means *(x+0). The pointer arithmetic still occurs behind the scenes, but it is an implementation detail that is of no real concern to the programmer. However, in order to understand how arrays work, it is important we understand the underlying pointer arithmetic.

Note that the array suffix operator should not be confused with the array declarator:

int x[50]; // declarator

x[10] = 42; // suffix operator

The declarator tells the compiler how many elements of the given type to allocate (the dimension), while the suffix operator tells the compiler which element to dereference.

The notion of dimensions can be extended to create multi-dimensional arrays.

int y[5][10]; // two-dimensional array

Two-dimensional arrays are best thought of as being one-dimensional arrays of one-dimensional arrays. Here, y is a one-dimensional array of type int[10]. We can also think of them as being a table of rows and columns where every row is an array. The dimensions therefore tell us how many rows and columns there are in the table.

We can extend this line of thinking into three dimensions:

int z[3][4][5]; // three dimensional array

Here we have an array of 3 tables, where every table has 4 rows and each row has 5 elements of type int. Although we can imagine such an array as being a cuboid or as a stack of tables, it's always much easier to think one-dimensionally as it helps our understanding of arrays with more than 3 dimensions.

In this case it is better to think of z as being an array of 3 elements of type int[4][5], and each of those arrays as being an array of 4 elements of type int[5]. Extending the notion into 4 or more dimensions then becomes trivial:

int m[2][3][4][5];

Here, m is a one-dimensional array of 2 elements of type int[3][4][5].

Note that the C programming language is a row-major language, thus with multi-dimensional arrays the row always comes first. In other words, m is a one-dimensional array of two rows, where every row is an array of type int[3][4][5]. Similarly, int[3][4][5] is a one-dimensional array of 3 rows of type int[4][5]. And so on.

Array elements are always allocated contiguously regardless of the number of dimensions. To determine the size of an array allocation in elements we simply multiply the dimensions. Thus m has sufficient memory to store 2*3*4*5=120 elements. To determine the length in bytes, we multiply the product of the dimensions by the size of the array type. Thus m is 120*sizeof(int) bytes in length.

What is a recursive function that can count its own occurrence?

void foo (unsigned int x)

{

static count {0};

++count;

if (x != 0)

return foo (--x);

return count;

}

int main()

{

int cnt = foo (10);

assert (cnt==10);

cnt = foo (5);

assert (cnt==15);

}

What is the meaning of Gd DETECT in 'C' language?

gd detect will detect the present graphic driver in your system automatically

What is a hearing loop used for?

The hearing loop is a system used for people with hearing aids, it is a special sound system. The hearing loop system supplies a wireless signal which is picked up in the hearing aid when on the setting 'T' (Telecoil).

What does XD D and P mea n in chat?

XD means a laughing face and :P means a “bored” face with a tongue sticking out and last but not least, :D means a smiling face.