19 Answered Questions for the topic 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); }

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

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

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

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

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

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? 

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

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

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

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

04/23/16

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

 Its urgent if u can answer faster.

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

04/15/16

In C programming, when comparing 2 files, how do I compare which file is newer than the other?

This is for a really big homework. In C programming, when comparing 2 files, how do I compare which file is newer than the other?

06/07/15

How can i make this OOP Program?

Declare a class test in which you declare two members of int type a, b and declare a method named divide and divide two members and throw exception of divided by zero

11/22/14

c programing question for phonebook application

/*phonebook application*/#include<stdio.h>#include<conio.h>void main(){clrscr();int i,n,number[10],b,c,given[10],g,entry[10];char find[15];struct phonebook{ char name[15]; int... more

08/07/14

I need help with several questions

1. What is the difference in the meaning between x3 and x[3]?   2. For the declaration:   int list[8];   How many memory cells are allocated for data storage? What type of data can be stored... more

05/22/14

Write a C program that compare the time required to compute the product of two 10,000 x 10,000 matrices with and without optimization for locality.

Write a C program that compare the time required to compute the product of two 10,000 x 10,000 matrices with and without optimization for locality.

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.