109 Answered Questions for the topic c programming

C Programming

04/20/20

Recursion based problem

The game of "Jump it" consists of a board with n positive integers in a row except for the first column, which always contains zero. These numbers represent the cost to enter each column. Here is a... more
C Programming C# Programming Coding

03/20/20

Conditional Statements In C Programmin

Question 11.Given the following code: switch(x - y) { case 0: return x; case 4: break; case 7: x = x - 1; case 9: return x*y; case 3: default: return y - x; ... more
C Programming C# Programming Coding

03/20/20

Logical Operators in C programming

1.Question Is the following expression true or false? -1 * -2 == 14 % 4 TrueFalse2.Question 2Is the following conditional statement true or false? int x = 6; -3 < 5 || !(x % 3 == 0) TrueFalse
C Programming C++ C# Programming

03/19/20

Printing Problem in C programming

1.Question For the following code: int a = -1; int b = a * 5; printf("a is %d, and b is %d. ", a, b); What is the output?2.Question int x = -1; int y = 3; x= x + Y; printf("x - y is %d. ", x -... more
C Programming C++ C# Programming

03/18/20

What does g(-2, 5) evaluate to?

What does g(-2, 5) evaluate to? int g (int x, int y) { x= x + y; int z = 2 * x + y; return z; }
C Programming C++ Functions Programming

03/17/20

What is this answer help me for this C FUNCTIONS answer?

Questions 1:- What does myFunction(5) evaluate to? int myFunction(int n) { int x = n * 2; int y = (x + 1) % 3; return y - x;}Questions 2:- What does g(3,-10) evaluate to? int z = 2 * x - y; return z; more
C Programming

01/11/20

what will be the value of i and why ?

#include<stdio.h>#include<string.h>int main(){ int z,i=0; while(scanf("%d",&z)==1) { i++; printf("%d",z); } printf("%d",i); }
C Programming

10/04/19

what is the difference between pass by reference and pass by value in c Programming?

pass by reference and pass by value in c Programming
C Programming C

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
C Programming

11/22/18

Questionarriess

(question)write a program to process orders at coffee shop. customers can order coffee or tea.A cup of tea costs $1.5 and a cup of coffee costs $1.75. Customers can order multiple cups. For each... more

04/16/18

C Program Question

The height of an object thrown upward with a velocity v is given by h(t)=vt-0.5gt^2where t is time in sec and g is 9.81 m/s2. Write a C program to compute the height of the object at an interval of... more

11/19/17

Hi, I don't know how to start about this question.. Can you help me with pseudocode and flowchart? Thanks!

A program which display Fibonacci numbers from 0 to 1000.Note :Fibonacci number is a set of numbers where each number is the sum of the previous two numbersin the set. Example : 0, 1, 1, 2, 3, 5,... more
C Programming

10/16/17

I need help with this C programming question. Please. :(

Write a C program that allows the user to input exactly 16 integers. The program will count and print the number/amount of: 1) Positive integers  2) Negative integers 3) Odd integers, and  4)... more
C Programming

09/30/17

I am studying for midterms and practicing for C programming. Please help me on this problem.

I have not really come up with one. I have in class, but I deleted it. I did one for loop with conditional statements, but I got only three asterisks. I would appreciate it if you could help me... more
C Programming

09/24/17

I need help with this c programming question. Please. Thanks in advance.

What is the value of count after the nested for loops are executed? int k, j, count=0; for(k=-1; k<=3; k++) for(j=3; j>=1; j--) count++   I know the answer is 15. But how? 
C Programming Programming

07/11/17

having trouble with some very simple C code.

Hello everyone, this is my code. It's meant to simply get input from the user about whether or not they have passed and then print the corresponding result. Problem is, when I type F the code runs,... more
C Programming C Pointer

12/16/16

This is a c programming question on pointer

Write a function that will take the length, width and height of a box, and calculate the volume and area of the box. Use call by reference so that your main function can have access to the... more
C Programming Files Using C

10/18/16

could anyone tell me whats wrong in this code?

#include<conio.h>#include<stdio.h>#include<string.h>static int i=0;struct web{char name[30],pass[30];}w[99];int n;void login(void);void reg(void);int main(){clrscr();printf(" ... more
C Programming

06/17/16

Checking if all parentheses are balanced with a C program

I was trying to write a C program which checks if the parentheses (including brackets and curly braces) are balanced. My current program is on GitHub:... more
C Programming

04/23/16

how can you allocate memory dynamically for 10 floation point numbers?

 Its urgent if u can answer faster.
C Programming

04/16/16

1. _______ is a series of statements or commands that are used to instruct the computer to perform your desired tasks

1. _______ is a series of statements or commands that are used to instruct the computer to perform your desired tasks

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.