I'm trying run my program which is a bit packing function. However I'm experience multiple errors and looking for some insight. Thanks.
# include "defs.h"
# define getmask(lastbit, firstbit)...
Type: Posts; User: sgk1498
I'm trying run my program which is a bit packing function. However I'm experience multiple errors and looking for some insight. Thanks.
# include "defs.h"
# define getmask(lastbit, firstbit)...
THANK YOU! I see it!
I changed the name of sin and the program will still not run. Good catch though, I would have never thought of that.
I am having difficulty determining what is wrong with my code. This code is calculated the sin function without actually using the function.
Any help or advice?
# include <stdio.h>
# include...
What about this for the "for" loop?
#include <stdio.h>
#include <stdbool.h>
int main() {
int i;
int n=0;
bool decreasing = false;
bool increasing = false;
Yeah I'm new to C programming so if it looks like I don't know what I'm doing that's probably because I don't...
Thanks for your help.
How is it wrong? It compiles and tells if it increasing or decreasing. it just won't tell if it is neither.
I'm trying to get this program to tell if the numbers in the array are increasing, decreasing or neither. However I can't seem to figure out how to get the program to print neither. Any suggestions?...
Thanks, I read through the section again and got a little bit better of handle on it.
However now I am working on this.
#include <stdio.h>
int main(){
int x[7] ={4,2,1,6,3,8,9};
int...
What is printed by the following code?
int s[4] = {9,1,2,5};
printf("%d\n", s[4]);
#include <stdio.h>
int main()
{
int n, sum = 0, c, value;
scanf("%d", &c);
for (c = 1; c != 0; c++)
{
Sorry about that.
here is what I have so far
#include <stdio.h>
int main()
{
int n, sum = 0, c, value;
scanf("%d", &);
Thank you!
I'm not quite sure how to do that. I'm new to C. Could you show me what you're talking about?
Thanks
Write a program
3. Write a program that reads a sequence of positive integers and prints out their sum, except that if the
same number occurs several times consecutively, ignore all but the first. Assume an input...
for #5 this is what I have so far.
it is not working.
# include <stdio.h>
int main(){
int a, b, i;
scanf("%d",&a);
scanf("%d",&b);
I'm unable to find the correct way to write these loops. Could anyone help?
5. Write a program that reads a sequence of pairs of positive integer values. For each pair, print all the
integer...