/*WAP to Subtraction of one pointer from another*/
#include<stdio.h>
#include<conio.h>
main( )
{
int arr[ ] = { 10, 20, 30, 45, 67, 56, 74 } ;
int *i, *j ;
i = &arr[1] ;
j = &arr[5] ;
printf ( "%d %d", j - i, *j - *i ) ;
}
there is some good c ,java, sql and vb6 programs,Windows tricks, sms shorthand etc
No comments:
Post a Comment