Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
gets.c
FirstCProg
Generic Singly Linked List
4qwrfdsfsaf
Spring 2017 Lab 4 v0.5
Spring 2017 Project 2 v1
1.6 Set No. of Threads
Instruction order in C/C++
Binary example
22nd HW Switchv0.1
Please log in to post a comment.