212 Answered Questions for the topic C

Need assistance with C code, not running

#include <stdio.h>struct students{ //struct studentchar FirstName; //String to store first namechar secondName; //string to store second nameint ID; //student IDfloat GPA; //student gpachar... more

how to write a C programme which creates two child processes

how to write a C programme which creates two child processes. Accept a file name from the user. First child should read the contents of the file line by line and writes this content in to shared... more

07/23/21

Write a C program with the parent process and a child process communicating with each other using a pipe.

Write a C program with the parent process and a child process communicating with each other using a pipe. The child process will execute the shell command provided by the user via command line... more

07/23/21

Write a C program where two child processes are created using fork().

Write a C program where two child processes are created using fork(). The parent process and the two child processes communicate with each other via a pipe. More specifically, the first child... more

07/23/21

This exercise shows the idea of how to use one user-defined signal handler to handle two signals.

This exercise shows the idea of how to use one user-defined signal handler to handle two signals. The two signals chosen for this exercise are SIGINT and SIGQUIT. Read (or Google) the descriptions... more

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

Digits and height. You will write two complete programs in x64 assembly.

You will write two complete programs in x64 assembly. In order to put off a discussion of how to use the operating system (which is necessary for interacting with the console), your programs will... 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

04/08/21

Converting C to Pep9

Translate the following C program to Pep9 assembly language exactly as a compiler would translate it. Do not show the generated machine language code. #include <stdio.h> const int NUM1 =... 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

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.