No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[code] #include<stdio.h> #include<conio.h> void values(int a[4]); void main() { int x[4],i; clrscr(); printf(" enter 1st number "); scanf("%d",&x[0]); printf(" enter remaining values "); for(i=1;i<4;i++) scanf("%d",x[i]); values(x[4]); [COLOR=red](cannot convert int to int* and type mismatch in[/COLOR] [COLOR=red]parameter 'a' in call to'value(int *)[/COLOR]' getch(); } void values(int a[4]) { int m,max,min,j; max=m; … |
|
[code=c] /*factirial*/ #include<stdio.h> #include<conio.h> void main() { int n,s=1,i; clrscr(); printf("enter n "); for(i=1;i<n;i++) { scanf("%d",&n); } for(i=1;i<n;i++) { s=s*i; } printf("factorial is %d",s); getch(); }[/code] |