There is no difference. The distinction is that a method
is attached to a class and a function is a stand alone part of code. Since it is an OO language, you can't have
functions, which stand...
Type: Posts; User: s_p_freez; Keyword(s):
There is no difference. The distinction is that a method
is attached to a class and a function is a stand alone part of code. Since it is an OO language, you can't have
functions, which stand...
#include<stdio.h>
#include<conio.h>
int fun(int [],int );
void main()
{
int ary[]={10,20,50,30,40};
int t,a;
clrscr();
printf("Enter any number : ");
scanf("%d",&t);