please correct me, if the comments are wrong and i understood the code the wrong way.Code:#include<stdio.h> int level(int n); main () { int a, i; /* i is used for the FOR-LOOP */ for(i=0;i<15;i++) /* i is counted to 15 */ printf("this displays simple function calls:\n"); printf("%d", level(i)); /* this line calls an integer, calling the value of i */ scanf("%d", a); } int level(int n) /* the value of i is copied to n */ { n=n+2; /* the value of n is increased by 2 */ return n; /* n is returned to the function call, replacing i */ }
thanks



LinkBack URL
About LinkBacks


