Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
A_141117_Euclides
#Define / Case/ If practice
C141106_TablaMultiplicar
hippo he Rhoda shalbert now ring one white car bomb ching
hwkpractice
Exm
C_141120_factorial02
multi dimension sum
Print Bash Version.c
18BCE2182 LAB FAT-2-A-ii