I am having trouble with the "for loop" of a 32 bit Adder program. I am suppose to take 2 arrays of 32 bits and sum them together.
The 2 errors I get are on line 37 and 38 called "called object is...
Type: Posts; User: threwup
I am having trouble with the "for loop" of a 32 bit Adder program. I am suppose to take 2 arrays of 32 bits and sum them together.
The 2 errors I get are on line 37 and 38 called "called object is...
So I need to read 32-bits of user input into 2 arrays and each bit is separated by a white space. When I enter the 32bits and then press enter, the program crashes.
example:
Input 32bits: 0 0...
Laser I love you so much, u cannot believe,
IT WORKED!!
my dad is singaporian, and i really love u. Your my good friend. Thanks for helping me out, u do not know how much this means to me.
...
Thanks
#include "stdio.h"
int mux(int*control[], int source[]);
int main(void)
{
int control[2]; // Holds array for Control input
int source[7]; // Holds array for Source input
int...
Can you tell me what to change, please i have this due in like 3 hours
1910349934
something like that im trying to print the first element of the array. pls help
If I shortened the code to yours, how can I print the output of the multiplexor? Don't I need output in the method so I can print the output?
Is there also a way i can print a specific element...
You guys suck mejor Balls
Please I need some help here creating a 3-bit multiplexor.
control inputs:0 0 0
source inputs: 1 0 0 0 0 0 0 0
output:1
control inputs: 0 0 1
source inputs: 0 1 0 0 0 0 0 0
output:1
am I on the right track?
#include "stdio.h"
int main(void)
{
int control[2]; // Holds array for Control input
int source[7]; // Holds array for Source input
int output;
This is the expression I came up with:
&& = And
|| = OR
! = Not
(A && !S && !T && !U)
||
(B && !S && !T && U)
||
(C && !S && T && !U)
So heres the guidelines:
Write a C program that simulates a 3-bit multiplexor. Your program should first read the 3 control inputs; then read the eight source inputs; then print the output of the...