Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c x 13
Member Avatar for Aman6o

On my development board, I am trying to make 8 LEDs (0 - 7) blink one by one. Here, is my code. What do I need to change to get my desired output, Please help. [CODE]int main (void) { int a,b; DDRC = 0xFF; PORTC = 0xFF; num = PORTC; …

Member Avatar for myk45
0
111
Member Avatar for Aman6o

Came across this showbits() function in the book im using to learn C. None of the compilers recognize it. The actual code for the function is given in the book as well. I tried to combine the two by putting function's code in header file. I have been unsucessful so …

Member Avatar for cse.avinash
0
1K
Member Avatar for Aman6o

Here are 2 simple files I am unsucessfully trying to combine and make the .exe. The errors i get are: Multiple definition of '_fun1' and '_fun2'. I am using the Cygwin gcc compiler. Please advice, Thanks. [CODE]#include <stdio.h> #include "functions.c" int i = 35; int fun1(); int fun2(); int main() …

Member Avatar for Aman6o
0
205
Member Avatar for Aman6o

I need help understanding the increment operator and the output of this program. I am confused with the output of 'i' and 'm' According to me: i = 4 and m = 20 but, that is not what you get when you compile. Please explain. Thanks in advance. [CODE]#include <stdio.h> …

Member Avatar for Narue
1
143
Member Avatar for Aman6o

In the following code, why does the value of 'b' remain 16 instead of 18?? [CODE]#include <stdio.h> main( ) { int a[5], i, b = 16 ; for ( i = 0 ; i < 5 ; i++ ) a[i] = 2 * i ; f ( a, b ) …

Member Avatar for N1GHTS
0
89
Member Avatar for Aman6o

I just started learning C and trying to run the following code (given in the book I am using) in Code::Blocks 10.05 compiler for windows. "error: too many arguments to function add_two_numbers ()" [CODE]#include <stdio.h> int main() { int var1, var2; int add_two_numbers (); var1 = 1; var2 = 53; …

Member Avatar for Aman6o
0
2K