the solution to the problem i figured out ,is as follows
/*Program ----> deleting a part of an array */
/*In this program we are going to delete 'd'
key idea --->make the adderess of 'd' point to the next , and the next to the next
From -----------> Ekarshi Mitra (Btech ------1Year----CSIT)
Date -----------> 1-01-2006
Time -----------> 11:45 P.M*/
Code:
#include <stdio.h>
#include <string.h>
int main ()/*void main() can also be used , depends unpon programmer*/
{
char name[]="under test";
int marker=2,count,string_length=strlen(name);
/*now suppose we remove 'd' from under test*/
for(count=marker;count<string_length;count++)
{
name[count]=(int)*&name[count+1];/*typecasting done here*/
/* can be compiled removing (int) */
}
printf(" ans = %s",name);
getchar();
return 0;
}
/*compiled and run under devc++ (IDE) */