Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Difference between memcpy n strncpy
#include <stdio.h> #include <stdlib.h> int main() { char s[10] = "qwerty", str[10], str1[10]; s[7] = 'A'; printf("%d\n",s[9]); strncpy(str,s,8); printf("%s\n",str); memcpy(str1,s,8); printf("%s\n",str1); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Assignment 3
NO OF NODES IN LINK LIST
Lab 11v0.6
pointer**
Maximum of Arrays
lab2
C_141113_dividirRestasSucesivas
Array Practice
Stub Program for Problem 5 HW 2
Project 4 v1
Please log in to post a comment.