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 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.

Is Programming a language?

No, but of course there is a programmers' slang.

And programming is done with so-called 'programming languages'.

How do you reply to 'how do you see yourself in next 5 years' in interview?

Usually the question is worded a bit differently with the interviewer asking where you see yourself five years from now. What they really want to know is what your goals are, how much enthusiasm or ambition you have for your career, and possibly how much responsibility you're eventually willing to take on. Give an honest answer, but concentrate on the growth you expect to make or the goals you plan to reach.

How do you convert 0.875 into binary numbers?

0.87510 is 0.1112

One way to do this is to multiply the decimal number by 2 until it is an integer, while remembering how many times you multiply. In this case, 0.875 times 2 times 2 times 2 is 7. Convert 710 to 1112 and then right shift 1112 three binary places to get 0.1112.

Can you give me the source code of sales in c language?

You can check various open source sites (SourceForge, etc.) to see if anyone has a program relating to sales, but if it is a proprietary (for sale) program you won't get the source code unless you pay for the source code license.

The truncated binary exponential back off algorithm?

This is the Algorithm use by CSMA/CD as a wait period to allow other devices on the network to access the media.

A C program using dynamic memory allocation to sort n names in ascending order?

Writing a C program that uses dynamic memory allocation to sort names in ascending order is a typical computer science assignment. To write this program, you must be in UNIX.

How many arguments pass in function?

zero or more

it can be fixed or variable (printf is an example)

What is a warning in C programming?

Warnings are used to alert the programmer to a potential runtime problem. For instance, when casting a double to float, there may be some loss in precision due to narrowing, thus the compiler will issue a warning. The programmer may choose to ignore the warning, but in production code it's usually best to treat warnings as errors (most compilers can be configured to do this). However, if the logic is sound, a warning can be temporarily disabled with a pragma just before the problem code.

Difference between procedure and function in C or C plus plus or Java language?

In C there are functions only, In Java methodsonly (static methods as well), in C++ both.

How to write a program to find the delimiter matching in stacks?

== == using recursions:

unsigned int Factorial( unsigned int x) { if(x>0) { return ( x * Factorial(x-1)); } else { return(1); }

}

factorial:

unsigned int Factorial( unsigned int x)

{

unsigned int u32fact = 1;

if( x == 0)

{

return(1);

}

else

{

while(x>0)

{

u32fact = u32fact *x;

x--;

}

}

}

What are types of data that can be electronically transferred?

In theory any data can be transferred electronically in the form of a organized series of values of zero(s) and one(s).

Any kind of data is converted into digital form from analog form using ADC i.e. Analog to Digital Converter and then it is able to transfer over an electrical medium.

What is the name of the C structure type?

The type is struct. The name can be any valid variable name that is not a keyword or other reserved name.

Is boolean used it turbo c?

There's no boolean in C, use int: zero=false, non-zero=true.

Can i download free C programming book in Hindi language?

i want to download or search matter of computer related topic in Hindi language. how can i get it?

What is new keyword in c?

enum, void and const are relatively new keywords in C

new, on the other hand, isn't a keyword in C

Disadvantages of pager?

I just wanted to be seen on GOOGLE! :) (CLement)

Thats really immature and childish grow up wanker u should be ashamed of urself

Write an algorithm for Round Robin CPU scheduling using?

On each system clock tick, at interval set by design...

  • If no other runnable threads, return from clock interrupt.
  • Save the currently running thread's context.
  • Restore the next runnable thread's context.
  • Return from clock tick interrupt.

Note: Most modern schedulers combine round-robin with priority. In the priority scheme, any runnable thread with a higher priority than the interrupted thread takes precedence. If there are none, then round-robin applies at the current priority. If there are no runnable threads at the current priority, lower priorities are considered until we reach the idle priority thread, which, by the way, is always runnable.

Also, there is usually an algorithm that adjusts thread priority dynamically. As the thread runs, if it stays runnable its priority slowly drops from its initial base priority. If it is constantly blocking and then then becoming runnable, its priority increases, often faster than it decreases. This makes interactive threads appear to be very responsive, while CPU intensive threads slowly defer to interactive threads. This is usually a good compromise between responsiveness and throughput.

How do you install the mfc feature in visual c plus plus 2005 or 08 or 10?

MFC is installed by default. To use it, start a new project and select MFC Application, MFC DLL, or MFC ActiveX Control, as appropriate, and follow the application wizard prompts.

What is an interrupt How are multiple interrupts dealt with?

An interrupt is a request to execute different code, initiated usually by a hardware condition such as data-ready or operation-complete, but also sometimes initiated by the running program. The processor saves its immediate state, IP and Flags, on the stack and loads a new IP value, effectively doing a CALL sequence to some interrupt service routine. The routine does whatever processing is required, and returns, restoring the running program.

Under normal conditions, the interrupt response sequence disables further interrupts, so that recursive entry does not occur. The service routine reenables interrupts just before returning, so that pending or further interrupts can be processed.

If multiple interrupt levels are to be supported, such as in the 8085, the interrupt service routine can set the interrupt mask, blocking the level in progress, and then reenable interrupts. This way, a second interrupt on a higher level can be processed while the first interrupt is being processed. On return, the lower level interrupt disables interrupts, restores the mask, and then reenables interrupts prior to return.

How does RTOS determine the Time frame If suppose you are having an event with Highest priority and if its goes on to the Infinity loop how it handles this situation being deterministic in behavior?

There are different scheduling mechanisms that RTOSes can use to be deterministic. The most common is preemptive scheduling. In this model, each task has a relative priority. The highest priority task that is ready to run gets control of the processor. This is what provides deterministic behavior. When no task is ready to run the system will go to the idle loop. An RTOS is simply a tool to acheive a deterministic system. It is up to the developer to build a system that is capable of meeting its deadlines. A poorly designed system can encounter situations where important tasks do not get processor time because a higher priority task has not released.

What code do you use to connect a form to a database?

with php you can use INSERT INTO table_name (field1,field2,..) values (data1,data2,..) data1, data2.. from form.