Take your return 0;
outside the for
loop.
More Related Contents:
- What is wrong with this C code?
- how to change this code to be able to solve this challenge?
- About C function
- How do I store a 16 byte binary value that can be represented as a 32 hexadecimal characters in an unsigned char* variable in C
- self referential struct definition?
- Getting “conflicting types for function” in C, why?
- func() vs func(void) in C99
- Difference between int main() and int main(void)?
- Are stack variables aligned by the GCC __attribute__((aligned(x)))?
- C99 inline function in .c file
- Bitfield manipulation in C
- What’s the use of suffix `f` on float value
- What happens when a variable goes out of scope?
- Wrap around explanation for signed and unsigned variables in C?
- Where to find stdio.h functions implementations?
- Getting Segmentation Fault
- Delete a Line from a file in C Language
- Why are global variables bad, in a single threaded, non-os, embedded application
- Convert double/float to string
- Find malloc() array length in C? [duplicate]
- Is there a meaningful distinction between freestanding and hosted implementations?
- Deep Analysis of Const Qualifier in C
- default value for struct member in C
- Store data in array from input [duplicate]
- Finding out if a message over tcp was delivered
- calling assembly function from c
- What is the use of typedef?
- Dereference void pointer
- How to compile and run C in sublime text 3?
- How to decrypt simple XOR encryption