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

Write a C program that takes a binary file as input and finds error check using different mechanisms?

write a c program that takes a binary file as input and finds error check using different mechanisms.

C coding for cooley tukey fft algorithm?

hi.... for DIT fft algorithm, refer to this link, it has c-code for that. http://cnx.org/content/m12016/latest/

What two entities does a local loop connect?

It connects the telephone to a central office.

What is the keyword used in combination with a valid c data type to redefine the name of the data type?

The keyword is typedef.

typedef int myInteger;

myInteger is now an alias for int. This also works for more complex data types, such as arrays and structures.

typedef struct {

int a;

double b;

char c;

} _myStruct myStruct;

_myStruct is now an alias for the structure that contains a, b, and c. I also instantiated one of them, and called it myStruct. You could now repeat this with...

_myStruct xyz;

...which would instantiate another one, called xyz. You can reference the members as xyz.a, xyz.b, and xyz.c.

How do you write an application letter for S S L C certificate withdrawal in college?

from-aleem pasha

28/07/2012

respected madam/sir

good morning

st frazer english school

as i studied in your class 10th standard i have pass so i want secondary leave certificate till 08/07/2012 please give me a certificate

thankyou

Difference between data structures and ADT?

Abstract Data Types:

ADT is a mathematically specified entity that defines a set of its instances, with:

  • a specific interface - a collection of signatures of methods that can be invoked on an instance,
  • a set of axioms that define the semantics of the methods (i.e., what the methods do to instances of the ADT, but not how)

Abstract Data Types (Examples):

  • Lists, Trees
  • Stacks, Queues
  • Priority Queue, Union-Find
  • Dictionary

Data Structure

In a general sense, any data representation is a data structure.

Example: An integer

More typically, a data structure is meant to be an organization for a collection of data items.

From: Shoaib Sidhu

C Program to thread the tree in post order?

I'm not giving you a full, ready-to-run code, just a skeleton program that may give you some ideas to start with. (And this way you will learn more.)

Let's suppose your tree elements look like this:

TreeElement{
integer data;
pointer leftnode, rightnode;
}

Then this is the frame of the program:

TreeWalk(TreeElement){
if(exists(leftnode)){ TreeWalk(leftnode); } //if there is a left subtree from this TreeElement, then traverse that
if(exists(rightnode)){ TreeWalk(rightnode); } //same for the right side
process(data); //do whatever you need to do
}

So this is the idea behind the postorder tree traversal, the actual details are up to you and the concrete problem.

How do you convert hexadecimal 4c.B7 to Binary?

Convert each hex digit to four binary digits. If you get less than three (for example, 7 --> 111), fill it out with zeroes to the left (in this case, 0111).

Address of a float can be assigned to a char?

No. The address of a float can only be assigned to a variable of type pointer to float. Any other (coerced) use is outside of the definition, implementation, and portability of the language.

Yes, with typecast, but it is entirely pointless:

float f;
char c = (char)&f;

Is Use of pointers in function saves the memory space?

No. But avoiding unnecessary duplication of data does.

Where does global static local register variables free memory and C Program instructions get stored?

* These are all implementation defined. Access to `register' specified indentifiers should be as fast as possible, so the compiler may place the value in a machine register. However, the compiler is free to treat a `register' declaration as an `auto' declaration. * Where free memory is maintained is an OS specific concept. Instructions are generally stored in code segement. Local Variables are stored in Stack. Register variables are stored in Register. Global & static variables are stored in data segment. The memory created dynamically are stored in Heap And the C program instructions get stored in code segment.

What is the function of the qr code?

it bridges the gap between online and off-line content

Which directive informs the compiler in which any custom server control added to the page or not?

Register directive informs the compiler in which any custom server control added to the page or not

What is the use of Default statement in switch case?

C++ Provides a multiple branch selection called as switch. This selection statement succesively test against a list of integer or character constants. When a match is found the statements associate with constants are executed.

When no match is found default statement is used.