CALL BY ADRESSS EXAMPLE 2
void changeMe(int*a)
{
*a=72;
}
void main()
{
int a=145;
printf("Before :%d\n",a);
changeMe(&a);
printf("After
: %d",a);
}
OUTPUT
Before:145
After:72
import java.util.Scanner; public class pattern3 { public static void main(String args[]) { int i,j; Scanner sc=new Scanner(System.in); Syste...
No comments:
Post a Comment