Code Zone
Labels
BareMinimum
Done
FrequentlyAsked
RecentQuestions
Revise
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment