23 Plus 81 ToolS
Learning Step by Step
Tuesday, September 6, 2011
STRING COPY- EXAMPLE
I#include<stdio.h>
#include<conio.h>
void main()
{
char str1[] = "indian box";
char str2[20];
strncpy(str2,str1,8);
printf("%s",str2);
getch();
}
OUT PUT:
If U LIKE THE POST FOLLOW THE BLOG
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment