203 Answered Questions for the topic C

Arrays and Functions

Write a C program using a function called find_divisible_by_2() that gets an array and prints the elements of that array which are divisible by 2. Assume that the size of the array is 10.Here is... more

Write the assembly code in AT&T syntax for digits.c and height.c intended for people to be able to read it, not in assembly compiled and generated by a machine.

Write the assembly code in AT&T syntax for digits.c and height.c intended for people to be able to read it, not in assembly compiled and generated by a machine. They are both in C. Write the... more

C Programming Language. Please write the two programs in C. 

C Programming Language. Please write the two programs in C. DigitsWrite this program in a file named digits.c.As input, you will define a quad word integer variable named input in the initialized... more

Compilation is normally encapsulated so that all of the necessary steps happen behind the scenes. Type the following C code into a file named count.c.

CompilationCompilation is normally encapsulated so that all of the necessary steps happen behind the scenes. Type the following C code into a file named count.c.#include <stdio.h>#include... more

C Programming. First, fully parenthesize the following expressions according to the precedence and associativity rules.

First, fully parenthesize the following expressions according to the precedence and associativity rules. Then, replacing the variables and constants with the appropriate type names, show how the... more

C Programming Questions: 1. What is unusual about the logical operators? 2. What is a possible problem using continue in while statements?

1. What is unusual about the logical operators? 2. What is a possible problem using continue in while statements?

01/17/21

Ans this question in C?

(C ONLY) I am having issues with coding this is what I have currentlyThe program expects the name of an input file and an output file to be given by the user. Ifthe user does not input any names,... more
C C++

12/03/20

write a C program to

Design anagram game using array. Allow a user to enter N primary words and store it in an array. Generate a random number from the range 1 to N. Based on the random number generated display the... more
C C++

12/03/20

write a C program to

An organization has to maintain it employee’s details. There is need of accessing details of employees frequently. Taking this information into consideration, use appropriate data structure to... more

Need C++ coding Help Encryption and Decryption Using Substitution and Caesar Cipher.

Program Specification:Using the techniques presented during this semester create a complete C++ program to emulate anEncryption/Decryption Machine. The machine will be capable of the following:... more
C C++

11/21/20

write a program to

Write a program to implement phone book dictionary using Binary Search Tree which provides following operations: (a) add new entry in phone book, (b) remove entry from phone book, (c) search phone... more
C C++

11/21/20

write a program to

Write a program to construct binary tree from a given preorder and postorder traversal sequence.
C C++

11/21/20

write aprogram to

Write a program to implement Binary search operation on any given set of integers.
C C++

11/21/20

write a program to

a) Write a program to implement Quick sort for sorting a given set of integers in ascending order.b) Write a program to implement Heap sort algorithm for sorting a given set of integers in... more

(C++) How to make variable vertically?

So I know how to make text vertically but the thing is I don't know about the variable here's the... more

11/07/20

C++ problem on output

anyone knows to show exactly numbers like this: -550.987654321234 I'm using float or double it shows -550.988 and that's not the output I want. Anyone knows to solve this?
C

06/25/20

What is the output for f(-1, 4)?

void f (int x, int y) { while (x < y) { printf("%d ", y - x); x = x + 1; y = y - 1; }}

09/08/19

What could cause the compiler to return the error " undefined reference to `Print' " ?

I've been working on this simple C project, trying to implement header, implementation, and makefiles. My professor provided the code for us to test, however whenever I use the "make hello3"... more

07/12/19

I would like to be able to compare values in one CSV with a nominal set of values in another?

I have been given the task of injecting faults into a system and finding deviations from a norm. These deviations will serve as the failures of the system. So far we've had to detect these faults... more

Casio Calculator Programming?

I am planning to buy a CASIO FX-9860GII for school, but I am really interested in programming for it. I looked everywhere on the internet but could not find anything. Is it possible to create... more

06/27/19

Determine the sign of a 32 bit int?

Using ONLY: ! ~ & ^ | + << >> NO LOOPS I need to determine the sign of a 32 bit integer and I need to return 1 if positive, 0 if 0 and -1 if negative. Any ideas? I first... more
C

06/27/19

#define macro for debug printing in C?

Trying to create a macro which can be used for print debug messages when DEBUG is defined, like the following pseudo code: #define DEBUG 1 #define debug_print(args ...) if (DEBUG)... more

How dangerous is it to compare floating point values?

I know `UIKit` uses `CGFloat` because of the resolution independent coordinate system.But every time I want to check if for example `frame.origin.x` is `0` it makes me feel sick: if... more
C

06/26/19

Valid, but worthless syntax in switch-case?

Through a little typo, I accidentally found this construct: int main(void) {  char foo = 'c';  switch(foo)  {   printf("Cant Touch This\ "); // This line is Unreachable ... more
C

06/26/19

Simulink: How to get a buffer size that can be changed in C code?

I'm using a buffer from DSP System Toolbox in my Simulink model and genereate C code with Embedded Coder. I would like to have some kind of a parameter or define for the buffer size in my generated... more

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.