File: Stare vježbe/vjezbe06/36a__prototip.c
/* 36a__prototip_a.c Prototip funkcije. */ #include <stdio.h> int f ( double ); int main() { float x=2.0; printf ("%d\n", f (2)); /* pozivamo funkciju sa int-om kao parametrom */ printf ("%d\n", f (x )); /* pozivamo funkciju sa float-om kao parametrom */ return 0; } int f ( double x ) { return (int) (x*x); }
|