- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
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; … |
|
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 … |
|
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() … |
|
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> … |
|
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 ) … |
|
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; … |