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
Assignment 5 part 2
pointer_swap
Linear Searching
Project 3 Part 1 v1.0
array poi
CharacterInput
22nd HW Switchv0.1
1.3 Max threads
llist.h
Goodone tricky