243 Answered Questions for the topic C
04/05/21
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?
what is the code
Write a Program in C/C++ with OpenGL using Glut.h to display your “First Name” using output primitives by defining vertices in 2d/3d.
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
12/02/20
C++ Help Finish Code Has Error's Encrypt/Decrypt Using Substitution and Caesar Cipher
Here is my code so far please help me fix it.#include<iostream>#include<vector>#include<set>#include<string>using namespace std;class Substitution { int key; string...
more
12/02/20
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
11/10/20
(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
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
07/11/19
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
06/26/19
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
Digit-increasing number test?
A number is called digit-increasing if it is equal n + nn + nnn + ... for some digit n between 1 and 9. For example 24 is digit-increasing because it equals 2 + 22 (here n = 2).
Actually, a friend...
more
C
06/26/19
Rounding Number to 2 Decimal Places in C?
How can I round a float (such as 37.777779) to two decimal places (37.78) in C?
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.