Saturday, July 14, 2012

C String Questions

1.void main(){
   char *str=NULL;
   strcpy(str,"cquestionbank");
   printf("%s",str);
}
We cannot copy any thing using strcpy function to the character pointer pointing to NULL.

No comments:

Post a Comment