Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Strncpy memcpy
#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("%d\n",str[7]); memcpy(str1,s,8); printf("%c\n",str1[7]); return 0; }
run
|
edit
|
history
|
help
0
Volume of a square pyramid With functions
this
ajr
Camping
formatting_input_and_output
joseph a triangle
C_141113_euclides
DDD
709 lab 3.1
palindrome.c