The following code yields this compiler warning and it will print, what I think, is a memory address location. I can pass a struct with the same syntax and it works fine. I'm not very good with C, but I enjoy it. Any suggestions as to how I might resolve this?
w
arning: format '%d' expects type 'int', but argument 2 has type 'int *'|
Code:#include <stdio.h> void lax(int *fs); int main() { int fs = 0; lax(&fs); return 0; } void lax(int *fs) { printf("fs: %d\n", fs); return; }