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

Can you tell me a C program to find if the strings are equal using pointers?

It is called strcmp, part of the standard run-time library. Returns 0 if the two strings are equals, non-zero otherwise.

How do you display 15 numbers in an ascending order using an array?

Sort the array then traverse the array, printing the element values as you go.

Does every algorithm have a c program?

Yes. More generally, every algorithm (defined as a sequence of finite steps to solve a problem that can be easily understood by a human) can be converted into machine code such that the algorithm can be understood by a machine. The C programming language is just one such method of converting algorithms into working machine code.

Which is an example of a PLSQL subprogram?

A PL/SQL subprogram is equivalent to a procedure or function in conventional procedural programming.

What do you mean by base case recursive case binding time runtime stack and tail recursion?

These terms are found in Recursion.1.Base Case:it is the case in recursion where the answer is known,or we can say the termination condition for a recursion to unwind back.For example to find Factorial of num using recursion:

int Fact(int num){

if(num==1 num==0)//base casereturn 1;else // recursive case: return num*Fact(num-1);}

2.Recursive case:It is the case whcih brings us to the closer answer.

Run Time Stack:It is a system stack us to save the frame stack of a function every recursion or every call.This frame stack consists of the return address,local variables and return value if any.

Tail Recursion:The case where the function consist of single recursive call and it is the last statement to be executed.A tail Recursion can be replace by iteration. The above function consists of tail recursion case.where as the below function does not.

void binary(int start,int end,int el){int mid;if(end>start){mid=(start+end)/2;if(el==ar[mid])return mid;else{if(el>ar[mid])binary(mid+1,end,ele);elsebinary(start,mid-11,ele);

Domain name and ip addressess are technically same?

Domain name is a name of a group of systems, while IP Address is the Identification for each systems. So they are not technically same.

How do you use the getKey function on a TI-83 plus?

//A can be any variable and -> represents the sto(store) key function getkey->A //105 is the number of the corresponding key in this case the enter key
if A=105
then
*commands*
end

What is the optimum design of an information system?

An information system is a melding of the concept of information with a system of technology to best facilitate organizational needs.

What is a built-in data type?

C and C++ have many types, however we often use the terms fundamental types, integral types, arithmetic types, built-in types and user-defined types when referring to a collection of types. Each has a specific meaning, however there is some overlap, so to make things clearer we need to work from the ground up, starting with the fundamental types:

Fundamental Types

Boolean (type bool)

Character (such as char and wchar_t)

Integer (such as int and long long)

Floating-point (such as float and long double)

No type (void)

From these fundamental types we can construct other types using declarative operators:

Pointer and Reference Types

Array types (such as char[])

Pointer types (such as int*)

Reference types (such as double& and vector&&) [C++ only]

Users can also define additional types:

User-defined Types

Data structures (struct)

Classes (struct and class) [C++ only]

Enumeration types (enum)

Enumeration classes (enum class) [C++ only]

The Boolean, character and integer types are collectively known as the integral types. The integral and floating point types are known as the arithmetic types. The fundamental types, the pointer and reference types are known as the built-in types. The remainder are user-defined types.

It should be noted that both C and C++ provide user-defined types as part of their respective standard libraries. Put simply, a user-defined type is one where a definition for that type must be provided by the user, either by explicitly defining that type or by including a header that contains the definition of that type. This naturally includes aliases (typedef types). The built-in types require no explicit definition, hence they are known as the built-in types.

Is Microsoft Visual C plus plus IDE a good product?

It is a good product, albeit a pricey one. However the C++ implementation is non-standard. If you're coding purely for Windows platforms and do not require portability with another compiler then VC++ is hard to beat. But if you require cross-platform and cross-compiler capability, you'd be best advised to use a generic implementation that fully complies with the ISO standard.

How you pass array elements to a function Give an example?

You can pass array elements just as you would pass a named variable.

void f(int& x) {/*...*/}

int main()

{

int a[] {4,8,15,16,23,42};

f (a[3]); // pass the 4th element to f...

}

Why bit masking is required in c language?

Bit masking is required whenever we need to invert a group of bits in a bit field. Bit masks allow us to perform these changes in a single operation rather than one bit at a time.

Give an example where passing an argument by reference would be useful?

If you need to pass an array with the large number of elements the best way to do it is using passing by reference because you don't create a copy of the array. Thus, you save free RAM space.

What is data file?

it may require a large amount of data to be read,processed and also served for latter use.such memory is store ion the auxiliary memory device in form of data file.the data file is collection of bytes.

What is a stock sorting algorithm?

Stock sorting algorithm is a algorithm which is used to sort any kind of stock i.e. any data type containing the primitive values like array ,link list ,stack etc.

What are the different types of glucometers?

Well, if you mean companies, there's Bayer, OneTouch (I prefer it, I use the UltraSmart), FreeStyle Flash, and I think Liberty has one if you're on MediCare.

There's also one I got while I was in the hospital, it comes in handy when you have high blood sugars because it will read keytone levels directly from the blood.

What is objective in language arts?

I don't know if this is what you are asking, but I'll give it a try.

There are certain forms of 'terms' for use of a better word, in language arts.

Objective is a 'term'. There are two types of objects-Direct and Indirect.

Here are a couple of examples:

He likes his job. He likes what? He likes job. Job is the Direct Object in the sentence.

Jamaica bakes John a cake. Jamaica bakes what? Jamaica bakes cake. Cake is the Direct Object. (DO) In this case, there is an indirect object (IO) also. Jamaica bakes cake to whom? To John. John is the Indirect Object of the sentence.

Hampton needs his pencil case. Hampton needs what? Hampton needs case. Case is the DO. Pencil is an adjective modifying case.

Be careful of Predicate Nominatives and Predicate Adjectives. Examples:

Alex is a carpenter. Alex is what? Alex is carpenter. But, wait a moment: Alex is the carpenter--Carpenter is Alex. Carpenter is the Pred. Nominative.

Holly's fingers were quick on writing the essay. Quick is a Pred. Adjective. Quick fingers. Quick modifies the subject, fingers.

I don't know if this was what you wanted, but anyway, hopefully you got smarter! (in any case) So, again, hope this helped/helps!

What are the operators in c tokens?

All arithmetic, logical operators are operators in c tokens.

As: +, - , ++, --, %, &&, &, >>, << etc.

What is C. botulinum?

C. botulinum is a spore-forming, anaerobic, grampositive bacilli found globally in soil and honey. The toxin has recently gain notoriety. It is a potential bioterrorism agent, and it is used as a beauty aid to eliminate frown lines.