l=FFT(logN,&werte,&nul); ^ ^
Drop ampersands from that line.
The problem is that the &
operator in this context produces an expression with a different type than what FFT
expects. FFT expects a pointer to a double and &werte
produces a pointer to an array of N elements. So, in order to make FFT
happy, just pass werte
which will quietly decay to a pointer to the first element.
For more information on pointers to arrays, there’s a C FAQ.
Related Posts:
- Pointer Arithmetic
- char *array and char array[]
- C pointers and arrays: [Warning] assignment makes pointer from integer without a cast
- Difference between char* and const char*?
- #31 expression must have integral type
- How do you pass a function as a parameter in C?
- Invalid pointer error on invoking free() after malloc in C
- expression must have integral type
- What’s wrong with my code? What is argv[1]?
- Valgrind: Invalid read of size 1
- Constant pointer vs Pointer to constant
- Reversing a string in C
- Warning: return from incompatible pointer type in C
- strcmp giving segmentation fault
- Why am I getting this error: “data definition has no type or storage class”?
- char pointers: invalid conversion from ‘char*’ to ‘char’?
- What is the difference between char array and char pointer in C?
- typedef struct pointer definition
- Dereference void pointer
- The difference between char * and char[] [duplicate]
- lvalue required as increment operand
- What causes a segmentation fault (core dump) to occur in C?
- How to use symbols of extended ASCII table in C?
- Two questions about basic C programs
- Arrow operator (->) usage in C
- How to convert an int to string in C?
- typedef struct vs struct definitions [duplicate]
- what is the difference between uint16_t and unsigned short int incase of 64 bit processor?
- What does “dereferencing” a pointer mean?
- What causes the Broken Pipe Error?
- What is EOF in the C programming language?
- Why does the terminal show “^[[A” “^[[B” “^[[C” “^[[D” when pressing the arrow keys in Ubuntu?
- Write to .txt file?
- Reading from file using read() function
- What is the difference between ++i and i++?
- warning: assignment makes integer from pointer without a cast
- munmap_chunk(): invalid pointer
- printf() formatting for hexadecimal
- The importance of c enumeration (typedef enum) [duplicate]
- What does #pragma once mean in C? [duplicate]
- Undefined reference to pow( ) in C, despite including math.h [duplicate]
- Undefined reference to pow( ) in C, despite including math.h [duplicate]
- C programming, error: called object is not a function or function pointer
- How to convert an int to string in C?
- Process finished with exit code 11 | Error during malloc [duplicate]
- How does wait(NULL) exactly work?
- How to replicate vector in c?
- Try catch statements in C
- C compile error: “Variable-sized object may not be initialized”
- What does WEXITSTATUS(status) return?
- Difference between a Structure and a Union
- Xcode – Warning: Implicit declaration of function is invalid in C99
- Error: control may reach end of non-void function in C
- C language: float % float why expression must have integral type
- Reading \r (carriage return) vs \n (newline) from console with getc?
- In C, how should I read a text file and print all strings
- What does “Size in TCHARs” means?
- Python ? (conditional/ternary) operator for assignments
- What’s the difference between a file descriptor and file pointer?
- return makes integer from pointer without a cast [-Wint-conversion] return candidate
- How do you pass a function as a parameter in C?
- Math constant PI value in C
- Cygwin – Makefile-error: recipe for target `main.o’ failed
- How do you pass a function as a parameter in C?
- C free(): invalid pointer
- How can I use an array of function pointers?
- When and why to use malloc?
- Multiple definition of … linker error
- Does sizeof return the number of bytes or the number of octets of a type in C?
- C compile error: Id returned 1 exit status
- How do I concatenate const/literal strings in C?
- Efficient way to find task_struct by pid
- Why am I getting this memory access error ‘double free or corruption’?
- Passing an array by reference in C?
- size of struct in C
- How to generate a random number between 0 and 1?
- How can one print a size_t variable portably using the printf family?
- How to make sense of modulo in c
- “No such file or directory” error in CodeBlocks
- Check if input is integer type in C
- Iterate through a C array
- Allocating string with malloc
- How to simply convert a float to a string in c?
- double free or corruption (!prev) error in c program
- What does this GCC error “… relocation truncated to fit…” mean?
- Using floats with sprintf() in embedded C
- Printf width specifier to maintain precision of floating-point value
- Two or more data types in declaration specifiers error
- What exactly is meant by “de-referencing a NULL pointer”?
- ‘sprintf’: double precision in C
- C printing bits
- How do I find the time complexity (Big O) of while loop?
- Why do we use NULL in strtok()?
- How does the fscanf function work?
- Warning: comparison of distinct pointer types
- error: ISO C forbids nested functions – What’s wrong?
- getline() vs. fgets(): Control memory allocation
- Carriage return in C?
- FFT in a single C-file
- fgetc(stdin) in a loop is producing strange behaviour