Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Lab 8 part 2 v.05
PRACTICA LISTA
Example of scanf and basic integer manipulation - with function call
Replacing Evens and Odd with ones and zeroes in a 3-Dimensional array
fibonacci1
Character testing
PPCG partial solution to https://codegolf.stackexchange.com/q/120870/61563
C_141204_ContadorPalabras
% with negative numerator and positive denominator (gcc)
A_141121_fibonacci
stackse - search stackoverflow differently
Please log in to post a comment.