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 to write a program to show the counter that counts 1000000 in a second?

You need to know how long a loop of 1000000 takes to execute. If it executes in an appropriate fraction of a second, you can provide a sub-loop or no-op instructions to make up the difference. If it does not, you can not.

What is difference between fundamental and derived data types?

The simple is that fundamental quantities can be changed its not constant always and derived Quantities is like to constant always it could not be change ever.

Why array does not store the data permnantly?

Arrays, just as normal variables, store information in RAM memory. When power is turned off, the contents of RAM memory get lost. For permanent storage, you'll have to write information to a file, or access a database.

What sort of service does Play N Trade provide to its users?

Play N Trade is a company that offer to buy customers used video games and console via the mail. Ratings of this site are mixed as they sometimes seem to offer very low prices for people trade ins.

How to write a C program to find repetitions of letters in a string?

"in order to check the repetition of characters in a string in c" we have to pick up each element of the string using a for loop and then using its ASCII value check whether another character of the same ASCII value exists using an if condition statement.

What is the requirement of an array?

The two main requirements of an array are:

* Its size should be specified while declaration. This size cannot change.

* It can contain only homogeneous elements as its values. i.e., for example an array can contain either all int values or all char values etc. It cannot take values of different data types

Why is a class known as composite data type?

A class is known as a composite data type because it binds both member variable and functions as a single identity.

What is JNI?

Java Native Interface

JNI is an interface between java and applications and libraries written in other languages.

As an example, JNI enables Java programs to use C libraries and also enables C programs to use Java classes.

Sample program on LISP and c program?

Bigloo, chicken or gambit are just designed for that: mixing c and scheme (a dialect of lisp):

You easily mix both language in a same program, il you want in the same source file, then it get compile in c

Best of both world!

Why do you use flowcharts?

Flowchart means pictorial representing of an algorithm.

How can you create a password with the conditions as follows min 8 chars to inc 1 upper and 1 lower case 1 numeric and 1 special char?

An address, or part of an address, can fulfil all these requirements, especially if you use the American # before the street or building number as your special character. Hope this helps.

Which type of data is the number of employees in Walmart store in Hutchinson Kansas?

The type of data that would probably best describe the number of employees of a single store might be an unsigned byte (from 0 to 255). Generally, you want to plan for future expansion, however, so you might want to designate the type as an unsigned short int (0 to 65535).

Why binary search algorithm did not work on an unsorted array?

The binary search algorithm works by successively halving the array and determining which half the result lies in, or if the half-way point is the result. In order for that to work, the array must be in order, otherwise choosing the half-way point would be meaningless because it would not tell you which half of the array the result is located in.

What is the operation of delete in stack?

Delete is mostly commonly known as pop in stack. The last element inserted into the stack is removed from the stack. Here is an illustration:

Consider the stack with the elements 1,2,3,4 inserted in order.

1->2->3->4

\

top


The top of the stack will be pointing to 4. When pop operation is performed, 4 is removed from the stack and the top is made to point to 3. The stack then becomes:

1->2->3

\

top