Info dan Pendapat
Friday, October 15, 2010
Convert char* (char pointer) to char array
char* nama = "Hashim";
char nama_pelajar[256];
for(int i=0;i
nama_pelajar[i] = nama[i];
1 comment:
ridzuan yunus
October 15, 2010 at 9:24 AM
for(int i=0;i<sizeof(nama);i++)
nama_pelajar[i] = nama[i];
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
for(int i=0;i<sizeof(nama);i++)
ReplyDeletenama_pelajar[i] = nama[i];